Skip to content

Instantly share code, notes, and snippets.

@jimjeffers
Created January 14, 2009 03:38
Show Gist options
  • Save jimjeffers/46766 to your computer and use it in GitHub Desktop.
Save jimjeffers/46766 to your computer and use it in GitHub Desktop.
A set of best practices you can paste into your CSS to keep members on the same page.
/* KEEP OUR CSS CLEAN
Some guidelines to follow:
1. Break code down into sections. i.e. =BRANDING, =BODY, = WIDGETX, =WIDGETY, etc.
2. Keep your rules alphabetically sorted.
3. Only put one selector per line for a block of rules that apply to multiple selectors.
4. Indent your rules, only one rule per line.
example:
element#id,
element.class {
rule1: value;
rule2: value;
top: value;
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment