Previous Message
Next Message

Re: [css-d] newbie: img & text wrap...

Sent by Big John on 26 September 2002 16:04


matt wrote:

> The div holds a image(aligned left) and paragraphs.
> My problem is that in N6.2 if I set a div height 
> any amount of text, larger than the height, will 
> spill from the box. If I don't set a height for the 
> div, it will allow the image to spill 
> from the box (if there is little text).

Sounds like you don't have an element with 'clear: both'
at the end of .casestudy.
Try '<div style="clear: both;"></div>'.

The floated img itself won't push down the bottom edge, 
but the cleared element won't render until it can touch both 
side container margins. This forces it below the float, and 
it *pulls* the entire container bottom down with it.

BTW, 'aligned left' should be avoided 
when discussing floats. ;-)
Big John



=====
"What the world needs is a good bug ring"--Big John
<http://users.rraz.net/mc_on_the_rocks/testpage/pie.html>

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
Previous Message
Next Message

Message thread: