Found two interesting slides about good CSS practices from Nicole Sullivan. Here are some points about examining our best practices myths rationally that I think are really nice:
Myths | Rational Rethink |
Don't add any extra elements | Add non-semantic elements judiciously |
Use descendant selectors exclusively | Keep specificity as low as possible
Use specificity to define your architecture |
Don't add classes (Classitis) | Abstract repeating visual patterns into class |
A video of her presentation on this topic at WebStock.
No comments :
Post a Comment