Better Semantics with CSS Combinators & Selectors
At design school we were all taught about classes and IDs, using
#respectively, to directly target elements. That’s enough control to build a functional website—but it’s not flexible enough to handle a complete design shift. It also creates a lot more work than needed by using presentational values within markup. Let’s take a look at an alternative approach to targeting those difficult-to-get-to elements and when the use them.