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

Position of pending floats

From: Allan Odgaard <Duff@DIKU.DK>
Date: Mon, 31 Jan 2000 18:56:13 +0100
To: WWW-Style@W3.Org
Message-ID: <yam8065.668.144546008@smtpserver.get2net.dk>
Hi there, I hope this'll be my final question about positioning of floats :-)

If I have a lot of float boxes, so wide that only one can fit the viewport at a
time, they'll be queued and appear (one by one) as soon as the horizontal
space allows it.

Now should the top position of each new float match that of the current line or
should it be moved up a few pixels to match the bottom of the last float box?

An example may help understand my dilemma:

   <Img Width=200 Align=Left ...>
   <Img Width=200 Align=Left ...>
   <Img Width=200 Align=Left ...>
   <Img Width=200 Align=Left ...>
   <P>This text will float to the right of all the images...</P>

Imagine the height of the images are one third of a line, and below I make
three ascii lines appear as one 'rendered line': (so an image will be two
ascii lines and a word will be three)

   [ 1 ] This    \
   [   ] This     |- first line
         This    /
   [ 2 ] text    \
   [   ] text     |- second line
         text    /
   [ 3 ] will    \
   [   ] will     |- third line
         will    /

But IMHO a more correct rendering would be:

   [ 1 ] This    \
   [   ] This     |- first line
   [ 2 ] This    /
   [   ] text    \
   [ 3 ] text     |- second line
   [   ] text    /
   [ 4 ] will    \
   [   ] will     |- third line
         will    /

Regards Allan
-- 
     URL: http://www.DIKU.dk/students/duff/
<sb>
Always remember that you are unique.  Just like everyone else.
Received on Monday, 31 January 2000 14:52:57 GMT

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