Answer the question
In order to leave comments, you need to log in
BEM how to avoid class conflicts?
BEM seems to solve this problem, but I seem to misunderstand something.
Let's say we have a list of products
<div class="products">
<div class="product">
<div class="product__title">Заголовок продукта</div>
<div class="product__description">Описание продукта</div>
<div class="product__btns product-btns">
<button class="product-btns__btn-buy">Купить</button>
</div>
</div>
</div>
<div class="product">
<div class="product__title">Заголовок продукта</div>
<div class="product__description">Описание продукта</div>
<div class="product__btns product-btns">
<button class="product-btns__btn-buy">Купить</button>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Product blocks should be radically different from each other, despite the fact that they have the same structure. How to be in such a situation?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question