CSS Style Guidelines

From Zanecorpwiki

Jump to: navigation, search
  1. Keep it simple and avoid hacks in the main code. Hacks are necessary because browsers (especially IE) are shit. Use the IE selection technique to segregate IE specific code.
  1. Put multiple rules on the same line. When scanning CSS, the most important bit is the selector, so make the selector easy to find by compressing the vertical space. (Thanks to Jonathon Snook for this one.)