Hard Edge

Selectors We Stopped Writing

posted by Olu Mensah
June 1, 2026
CSS
Photograph for “Selectors We Stopped Writing”

Some selectors made sense years ago and now only cause trouble.

The list

Browser support is no longer the excuse it used to be. Everything in this post works in every current browser without a fallback.

  • IDs for styling
  • Three levels of descendant nesting
  • Universal selectors inside components

If you only change one thing after reading this, make it the spacing. Consistent gaps make even a rough layout look intentional.

Flat selectors are easier to delete, and deleting is most of maintenance.

Colour is the last thing we add. Getting the structure right in black and white first saves a lot of arguing later.

None of this is new. It is the same advice print designers have given for a century, moved onto screens.

We keep a scratch file of small experiments like this one. Most of them go nowhere, but a few end up in every project.

12 thoughts on “Selectors We Stopped Writing”

Leave a Reply

Your email address will not be published. Required fields are marked *