css

It’s easy to let CSS get out of hand and it’s hard to really take advantage of the cascade. Here I’ll explain some techniques that help stem CSS bloat. When you aren’t disciplined with your CSS, it’s easy to end up in a situation where it’s hard to… know what parts of the site a particular rule is acting upon know whether a given rule is ever used be confident your changes won’t clobber something on the other side of the site define rules with appropriately specific scopes find all the rules acting on a particular element A well-defined CSS structure addresses some of these problems.
2013-01-07
3 min read