Thursday, March 15, 2012

CSS-Guidelines/CSS Guidelines.md at master · csswizardry/CSS-Guidelines

CSS-Guidelines/CSS Guidelines.md at master · csswizardry/CSS-Guidelines: "Syntax and formatting

We use multi-line CSS to help with version control (diffing single line CSS is a nightmare) and we order CSS declarations by relevance, not alphabetically.

We use hyphen delimited, lowercase selectors: .thisIsBad{}, .this_is_also_bad{} but .this-is-correct{}.

Always use a trailing semi-colon on the last declaration in a ruleset to avoid any potential confusion and syntax errors over the life of the document."

'via Blog this'