Forums

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

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36338
    psuma
    Participant

    I have placed a absolute div of dynamic height inside a relative positioned div.



    Some Content

    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 ?

    #95563
    TheDoc
    Member

    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?

    #95598
    psuma
    Participant

    The above was just a dummy example i gave but now I have uploaded the real scenario at the below link..

    http://182.71.250.190/dilan/bstream_html/Search_result.html

    The Rightcol div is absolutely positioned to the first post.

    #95615
    psuma
    Participant

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.