W3C home > Mailing lists > Public > www-style@w3.org > March 2003

Re: Block element width behavior

From: fantasai <fantasai@escape.com>
Date: Fri, 14 Mar 2003 22:57:51 -0500
Message-ID: <3E72A4BF.7030708@escape.com>
To: www-style@w3.org

David Hyatt wrote:
> 
> Float the div.  <div style="float:left">...

Then you're running into all kinds of browser floating bugs.
And,
      - You have to make the next element clear.
      - It doesn't work well when you already have floats
      - You can't center the result because it's floated to
        one side.

No, "display: table" is much better than that. But even better
would be adding David Baron's suggested value, 'intrinsic', to
'width' for CSS3.

http://www.w3.org/TR/2002/WD-css3-box-20021024/#the-width

(BTW, you really should trim your replies.)

~fantasai
Received on Friday, 14 March 2003 22:57:16 GMT

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