Sent by pandion on 11 February 2002 14:02
Hello list!
At 19:01 2002-02-11, Dougal Campbell wrote:
>On Fri, 8 Feb 2002, Eric A. Meyer wrote:
> > >I don't think you can float inline elements like span.
>>Sure you can. You can float anything your browser will let you
<snip>
>Well, damn. That's what I get for speaking without double-checking the
>spec first. Though, John Brooks did point out to me that we're supposed
>to specify the width for floats:
> http://www.w3.org/TR/REC-CSS2/visuren.html#floats
>
>I dunno why that should be. Seems to me that there's no harm in letting
>the browser automagically figure out widths, if none are specified
>(which is what seems to happen, anyhow).
Cannot lurk anymore. :)
I also have a problem understanding this. Because further down the same
page we can read the following:
-------------
Inline, non-replaced elements
The 'width' property does not apply. A specified value of 'auto' for
'left', 'right', 'margin-left' or 'margin-right' becomes a computed value
of '0'.
------------
<http://www.w3.org/TR/REC-CSS2/visudet.html#q4>
So, an inline element can be floated. A floated element must have a
specific width. Width doesn't apply to non-replaced inline elements.
My head hurts!
pandy