Answer the question
In order to leave comments, you need to log in
How to spell bam correctly?
<div c;ass="menu">
<div class="menu__icon">
<span></span>
<span></span>
<span></span>
</div>
</div>
</div>
По правилам методологии БЭМ мне нужно для каждого span задать класс или в css можно прописать "menu__icon span"?
Answer the question
In order to leave comments, you need to log in
<div class="menu">
<div class="menu__icon">
<span class="menu__icon-span1"></span>
<span class="menu__icon-span2"></span>
<span class="menu__icon-span3"></span>
</div>
</div>
</div>
As far as I understand it would be better like this:
<div class="menu">
<div class="menu__icon">
<span class="menu__span"></span>
<span class="menu__span"></span>
<span class="menu__span"></span>
</div>
</div>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question