Created
January 14, 2009 03:38
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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