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
>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:
>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
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!