Forum Moderators: not2easy
If I simply add text to the container DIV then it will be ok.
I wanted to have the height of the Container DIV to be automatic but I don't seem to be able to do that.
Any ideas, or an example bit of CSS that works would be very much appreciated.
<div class="notfloated">
<div class="floated">
</div>
<br class="clear">
</div>
and in css:
.clear {
clear: both;
}
In IE (esp. IE6) everything is different: it sometimes will expand the parent and sometimes not, if it doesn't triggering "hasLayout" is often the easiest solution (add somethign like "zoom:1" (a proprietary IE only thing) in a conditional comment.
[edited by: swa66 at 1:42 am (utc) on Dec. 17, 2008]