Computer scienceFrontendCSSBasic propertiesPositioning

Position

Positioning

Report a typo

Take a look at the code snippet below and select the answer that describes the correct behavior for an absolutely positioned .child element.

.parent {
   position: absolute;
   width: 200px;
   height: 200px;
   border: 1px solid black;
}
.child {
   position: absolute;
   width: 100px;
   top: 0;
   bottom: 0;
   left: 0;
   right: 0;
   background-color: rgb(231, 139, 139);
}

Two nested elements

Select one option from the list
___

Create a free account to access the full topic