Answer the question
In order to leave comments, you need to log in
How to give proper naming to BEM classes?
How to give proper names to BEM classes? When there are blocks that are identical in design, but with a different background image, each block has its own. Do for each, for example, categories_img__one, for the next categories_img__two, or for each, write categories_img and then assign the class one, two, three, etc. to each block.
For example:
<div class="categories_box">
<div class="categories_img__one">
</div>
</div>
<div class="categories_box">
<div class="categories_img__two">
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question