> in the case where you have section float left and aside float left, footer > clear both, is "clear" a hack?
There was some great feedback. Two things I like to add: 1) As for CSS hacks there are some great posts back from the days when we needed them the most. See e.g. http://tantek.com/log/2005/11.html, in particular the “a CSS hack should…” section. 2) If a CSS hack also involves HTML changes it’s obviously not just a CSS but also an HTML hack, and these are the by far worst ones to use. Why are they so bad? They violate separation of concerns and with that mean increased and absolutely unnecessary maintenance cost. The “clearfix” hack is one of the worst hacks we’ve ever seen because not only was it never (not as much) needed [1], not only did it violate every naming best practice [2], but it also (well, poor naming already implies that) guaranteed authors to touch all the templates and documents again just for hack management. [1] http://annevankesteren.nl/2005/03/clearing-floats [2] http://meiert.com/en/blog/20080812/best-practice-ids-and-classes/ -- Jens O. Meiert http://meiert.com/en/ ______________________________________________________________________ css-discuss [[email protected]] 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/
