Question

If we give relative position to the parent, which of the following child element will position itself with respect to the parent element?
<div class="parent">
<div id="child1"></div>
<div id="child2"></div>
<div id="child3"></div>
<div id="child4"></div>
</div>
#child1 {
position: fixed;
}
#child3 {
position: relative;
}
#child2 {
position: absolute;
}
#child4 {
position: static;
}

Answers

There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions