Previous Message
Next Message

Header Width

Sent by Alex Robinson on 1 September 2005 22:10


>You may be hepped up on goof-balls, but your memory seems intact -- 
>people >often recommend that we assign an explicit width to a block 
>that's floated in >many circumstances.  However, doing so isn't (as 
>far as I know) mandated by the >W3C spec and therefore isn't a 
>requirement but rather a recommendation by >veteran developers when 
>designing certain kinds of layouts involving floats.

You are correct as the current specs stand. However, the original 
CSS2 specs did mandate an explicit width. As Adam pointed out earlier 
in the thread

There is however no reason that the explicit width one should not be auto

ie, width: auto is perfectly acceptable

Except of course for IE Mac 5 treating that the same as 100%. [0]

Though there is a solution of sorts for IE Mac 5 - use display: inline-block

   http://www.fu2k.org/alex/css/cssjunk/FloatInlineBlock.html


That is, if you feel you have to cater for IE Mac 5.



[0] And possibly some earlier versions of Opera?
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: