CSS

BEM CSS Tip: Dealing with grandchild elements

How to name selectors in elements that are 2+ levels deep in your BEM block

The problem

The wrong way

The right way

Summary

--

--

Front end developer who likes to design. Lover of technology, 80’s music and Dominic Toretto.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andy Barnes

Front end developer who likes to design. Lover of technology, 80’s music and Dominic Toretto.