Read and review CSS Mastery, Chapter 2.
Take careful note of the sections Common Selectors, Pseudo-classes, The Cascade and Specificity.
Continued…Developing a website is a complex endeavor, and it’s important to have a plan from the very beginning. One of the most important rules for developing a useful CSS system is this:
Create general styles first and specific styles last.
Styling your website is like creating a pyramid: create a good set of general styles as a [...]
Continued…