An illustration of the space shuttle at a launchpad being swept aside by a tsunami

“Last” CSS pseudo-selectors are another useful way of detaching presentation from markup: rather than littering our HTML with classes to try to define what happens to the last instance of elements inside them, which would force us to move and reapply those classes when the content changes, we use a selector that will only ever be applied to the last element without changing our markup at all.

Enjoy this piece? I invite you to follow me at twitter.com/dudleystorey to learn more.