Forum Moderators: open
You can add an element to clear the floats, which will stretch the outer div.
Example:
<div>
<div style="float: left;">
content...
</div>
<div style="clear: both;"></div>
</div>
[edited by: Birdman at 2:30 pm (utc) on Dec. 18, 2004]
As I understand what you're saying, the problem is that the following code will show as a horizontal line, is this correct?
<div><div>line1<br />line2<br />line3</div></div>
I must have misunderstood your question, because this seems to show fine in firefox, at least 1.0 on linux.