I
I
Ivan Solovyov2017-05-30 11:47:55
css
Ivan Solovyov, 2017-05-30 11:47:55

Can BEM nest a block inside an element?

Can BEM nest a block inside an element?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Lysenko, 2017-05-30
@Ivan5130

So yes:

block-1
     block-1__elem
          block-2

block-1
     block-1__elem block-2

Yes, no:
block-1__elem
     block-1

M
Maxim Pavlov, 2017-05-30
@Ifelseapps

You can, and you can also mix on the same dom-node.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question