Tagged: css style guide

CSS Style Guide – Part 4

Specificity As we’ve seen, CSS isn’t the most friendly of languages: globally operating, very leaky, dependent on location, hard to encapsulate, based on inheritance… But! None of that even comes close to the horrors...

More

CSS Style Guide – Part 3

CSS Selectors Perhaps somewhat surprisingly, one of the most fundamental, critical aspects of writing maintainable and scalable CSS is selectors. Their specificity, their portability, and their reusability all have a direct impact on the...

More

CSS Style Guide – Part 2

HTML Given HTML and CSS’ inherently interconnected nature, it would be remiss of me to not cover some syntax and formatting guidelines for markup. Always quote attributes, even if they would work without. This...

More

CSS Style Guide – Part 1

Introduction CSS is not a pretty language. While it is simple to learn and get started with, it soon becomes problematic at any reasonable scale. There isn’t much we can do to change how...

More