W3C home > Mailing lists > Public > www-style@w3.org > January 2000

Floating objects

From: Allan Odgaard <Duff@DIKU.DK>
Date: Tue, 11 Jan 2000 03:13:34 +0100
To: www-style@w3.org
Message-ID: <yam8045.1730.151492176@smtpserver.get2net.dk>
Hi there, I'm writing a CSS2 capable browser and have a question.

The standard says that floating boxes are "outside the flow", does this mean
that if I have a box which floats to the left and a following (block level)
box which is taller, then the text in the following box should no longer be
indented, when the y position of the generated linebox is below the floating
object?

I.e. this code:

<Div Style="float: left; width: 100px">Little box floating.</Div>
<Div>A lot of text in the following box...</Div>

Should be rendered as:

Little box | A lot of
floating   | text in
-----------+ the
following box...

Rather than:

Little box | A lot of
floating   | text in
-----------+ the
             following
             box...

Further more, if the following box is given a border, should it then be
rendered over the floating box? I.e. to surround all of the text shown in the
first example.

Regards Allan
-- 
     URL: http://www.DIKU.dk/students/duff/
<sb>
If you think nobody cares if you're alive, try missing a couple of car
payments.
-- Earl Wilson
Received on Monday, 10 January 2000 21:14:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:02 GMT