Re: Floated elements and wrapping

On Sat, 31 Oct 1998, Braden N. McDaniel wrote:

> Consider:
> 
> DIV { width: 200px }
> IMG { width: 75px; float: left }
> 
> <DIV><IMG SRC="foo"><IMG SRC="foo"><IMG SRC="foo"></DIV>
 
> Should the third image be adjacent to the second, and extend past the
> right border of the DIV, or should it "wrap" to the next "line", and
> display below the first image? 

Yes. (IE4 fails to do this).

See CSS2 section 9.5 paragraph 2 sentence 4.

http://www.w3.org/TR/REC-CSS2/visuren.html#floats

-- 
Ian Hickson

Received on Sunday, 1 November 1998 10:05:20 UTC