RE: Re: Floats need explicit width??

Paul,

Just in case there may be any confusion, I am just an interested party not
anyone of consequence in this discussion. My opinion is about as
authoritative as Homer Simpson's. Having said that, for me it would be
useful to have this as a reminder about what may be causing an alignment
problem in my page.

Yes, you're right, without the float having an explicit width, the item will
still float. In further testing I see it's the width on the parent element
that I often forgot to include, so I guess this message wouldn't directly
resolve the issue I was trying to address, though I suppose it might be a
good clue of where I should be looking.

In any case, what I was really looking for was an "informational" message as
Phillip was describing. Personally I don't consider a warning the same as an
error. My opinion, but I see no reason why, for example, I have to describe
a background color and a color if the background color is already defined
elsewhere. It's just extra bandwidth wasted. I know it's not good form, but
most of the pages I create are simple and we're interested in small size,
rather than verbose explicit declarations. So when I see that warning, I
ignore it unless it's convenient to address it directly.

However, I do see your point. Since CSS 2.1 does not require explicit
widths, the "warning" is incorrect. But an informational message would be
still be nice in my opinion.

--Doug

Received on Tuesday, 17 February 2009 21:56:00 UTC