Answer the question
In order to leave comments, you need to log in
How to make a div on top of content?
There is a structure:
<div id='parent'>
<div id='child'>
<div/>
<div/>
Answer the question
In order to leave comments, you need to log in
Eugenue Cesarevich , the point is that "position: absolute" works from the nearest parent element with "position: relative". By default, "position: absolute" is pushed off the document.
<div id="parent">
<div id="child">
</div>
</div>
#child{
position: absolute;
}
#parent{
position: relative;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question