On 14.07.2012 21:47, Micky Hulse wrote:
> Silly question:
Is there such a thing as a silly question?
> Just curious (mostly wanting confirmation): Is it true that
> clear:both is superfluous if the div that needs to clear previous
> floats has a 100% width? Is there a situation/browser that might
> require clear:both?
I can create cases where a 100% wide float needs 'clear:
left/right/both' to clear previous floats and/or other content, so, yes.
Can't see the need for clearing in the case you present, but advice "
stress-testing" across browser-land since there may be more to your case
than you present here.
In cases where old IE versions create problems caused by clearing, I
usually include clearing for all browsers, and override it to 'clear;
none' for those old browsers only.
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/