W3C home > Mailing lists > Public > www-style@w3.org > August 2005

Re: [css21] anonymous block boxes versus block boxes

From: Håkon Wium Lie <howcome@opera.com>
Date: Mon, 15 Aug 2005 18:34:20 +0200
Message-ID: <17152.50188.970347.314237@localhost.localdomain>
To: Staffan Måhlén <staffan.mahlen@comhem.se>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, www-style@w3.org

Also sprach Staffan Måhlén:

 > Oh. I found
 > https://bugzilla.mozilla.org/show_bug.cgi?id=50630
 > Apparently people there agrees that "as high as possible" means 
 > including moving already positioned items. To me it seems that
 > this is a poor solution since it creates less predictable
 > and bouncier results. It also seems more complex to move content
 > rather than positioning the float at "the next line break", and
 > float implementations tend to have quite a few bugs. 
 > Should the rec be relaxed to explictly allow or even changed to 
 > require Mozilla/IEs behavior?

Let me offer a use case for keeping elements on the same line. Say you
are marking up a restaurant menu:


I'd like to float the price to the right to achieve this formatting

   Fish               $10
   Meat               $12

using this style sheet:

  dish { display: block }
  name { display: inline }
  price { float: right }

However, Mozilla and others show:

   Meat               $10

To achieve my preferred formatting, I have to write:


Which is not the logical content order.

(I could have used CSS tables for this, but support is spotty)

-h&kon (who suddenly got hungy)

              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Monday, 15 August 2005 16:34:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:20 UTC