M
M
MRcracker2017-08-27 23:35:31
HTML
MRcracker, 2017-08-27 23:35:31

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

2 answer(s)
P
paramid, 2017-08-28
@MRcracker

<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>

E
Egor Zhivagin, 2017-08-28
@Krasnodar_etc

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 question

Ask a Question

731 491 924 answers to any question