Re: Block element width behavior

On Sat, 15 Mar 2003, Etan Wexler wrote:
>
> That may work in current implementations, but there is nothing in the
> specification to say that it should. I refer to CSS2:9.5, "Floats"
> (<http://www.w3.org/TR/REC-CSS2/visuren.html#floats>):
>
>     A floated box must have an explicit width (assigned via
>     the 'width' property, or its intrinsic width in the case of
>     replaced elements).
>
> The error recovery is not specified. When there is no explicit 'width'
> setting, I suppose that using intrinsic width is acceptable. This does not
> make intrinsic width the one correct approach.

CSS2.1 resolved this omission.

# If 'width' is specified as 'auto', the computed value is the
# "shrink-to-fit" width.
 -- http://www.w3.org/TR/CSS21/visudet.html#q8

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'

Received on Sunday, 16 March 2003 06:05:24 UTC