W3C home > Mailing lists > Public > www-validator-css@w3.org > February 2009

Re: Floats need explicit width??

From: David Dorward <david@dorward.me.uk>
Date: Fri, 13 Feb 2009 16:48:26 +0000
Message-ID: <4995A45A.8040708@dorward.me.uk>
To: www-validator-css@w3.org

Douglas Perreault CPA* CITP wrote:
> HmmmÖ I didnít find the reference that said floats didnít need an 
> explicit width anymore
Paul quoted it and provided a URL to the source. I found it impossible 
to miss.
> , but then I donít see any explicit reference saying they need a width 
> either.
A floated box must have an explicit width (assigned via the 'width' 
<http://www.w3.org/TR/CSS2/visudet.html#propdef-width> property, or its 
intrinsic <http://www.w3.org/TR/CSS2/conform.html#intrinsic> width in 
the case of replaced elements 
-- http://www.w3.org/TR/CSS2/visuren.html#floats
> What I do know is that if you leave it off, some browsers consider the 
> width to be 100% and your element wonít float.
As far as I know, none of them are in common use today.

(Please direct responses to the www-validator-css mailing list, and not 
directly to me. Thanks)

David Dorward
Received on Friday, 13 February 2009 16:49:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:45 UTC