CSSLint / csslint

Automated linting of Cascading Stylesheets
http://csslint.net
Other
4.77k stars 483 forks source link

Doc: 10+ floats => "some sort of abstraction". What kind? #26

Closed pygy closed 13 years ago

pygy commented 13 years ago

Using0 float for layout isn't a great idea, but sometimes you have to. 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.

I'm left puzzled by this statement. Pointers to good alternative would be welcome.

mahonnaise commented 13 years ago

some sort of abstraction = a grid system (for the time being)

stubbornella commented 13 years ago

Good point, we should link to different grids systems.

huckfinnaafb commented 13 years ago

I think the issue is in the wording "Using float for layout isn't a great idea...", maybe "Overusing float in many different instances may represent a need for an abstract grid system..." with links to popular grids (or more specifically the OOCSS grid template :P) to clarify the meaning.

stubbornella commented 13 years ago

@huckfinnaafb - yes, I like that wording. "overusing" was missing.

Gavrisimo commented 13 years ago

+1 on this being a bit confusing when read for the first time