Skip to content

Disallow too many floats

nzakas edited this page Oct 24, 2011 · 3 revisions

The float property is currently the best way to achieve complex layouts, however it is possible to use too many. CSS Lint simply checks to see if you've used float more than 10 times, and if so, displays a warning. Using this many floats usually means you need some sort of abstraction to achieve the layout. Consider a grids system like OOCSS, 960gs, blueprint, or YUI3.

Rule ID: floats

Additional Reading

Clone this wiki locally