Auto height and the float issue.

Posted by William Hand on Stack Overflow See other posts from Stack Overflow or by William Hand
Published on 2010-06-05T18:06:22Z Indexed on 2010/06/05 18:12 UTC
Read the original article Hit count: 210

Filed under:
|
|

I have had this issue before and can't remember if and how I fixed it.

I have to create a scenario where I have 2 DIV's floated left and right inside a parent DIV. The 2 floating DIV's have height:auto, but the parent ignores them (perfectly logical) and the background of the parent DIV can't be seen. I know what the issue is, but are there any suggestions of how to solve it? Or any alternatives, I am willing to try a new approach.

Thanks in advance for any help.

© Stack Overflow or respective owner

Related posts about html

Related posts about css-layout