The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › How to Push Parent element to the height of absolute positioned div
I have placed a absolute div of dynamic height inside a relative positioned div.
If child div content exceeds than 200px, then the border stops at 200px, where as the child div looks overflowed. How to clear this child so that, its height is also considered by the parent ?
An absolutely positioned element is completely taken out of the flow of the document, you’ll need to adjust how you are coding this. Could you not just float the element and add a margin-top of 250px?
The above was just a dummy example i gave but now I have uploaded the real scenario at the below link..
The Rightcol div is absolutely positioned to the first post.
Hey Hompimpa, That is really help full!! Thanks a ton.
The real requirement of the client is like the Google search result. How Can we make the child div position fixed by any chance.