On Jun 30, 2009, at 10:34 AM, MEM wrote: > On the validation of this page > http://www.cantinho.org/pt/cantinho-site/layout4_ups.html , > here: > http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.cantinho.o > rg%2Fpt%2Fcantinho-site > %2Flayout4_ups.html&profile=css21&usermedium=all&warn > ing=1&lang=en-UK > I get 3 warnings: > > They tell that, to float something, that something needs to have a > width > declared.
1. it is a warning, not an error 2. CSS 2.0 actually required floated elements to have a width declared. This requirement has been dropped from CSS 2.1 in favour of a shrink-to-fit algo. <http://www.w3.org/TR/2008/REC-CSS2-20080411/visuren.html#floats> vs <http://www.w3.org/TR/CSS21/visuren.html#floats> <http://www.w3.org/TR/CSS21/visudet.html#float-width> 3. it is not necessarily a bad practice to assign a width to a floated element. Depending on the content of the floated element, rendering engines may differ on how wide the floated element is. Older rendering engines have problems with width-less floated elements. Philippe --- Philippe Wittenbergh http://l-c-n.com/ ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d 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/