K
K
kid-programmer2015-03-02 11:33:09
css
kid-programmer, 2015-03-02 11:33:09

How to organize by BEM or independent blocks.?

<Список продуктов>
     <Заголовок списка продуктов>  </Заголовок списка продуктов>
          <Продукт в списке>
               <Картинка продукта> </Картинка продукта>
               <Название продукта> </Название продукта>
          </Продукт в списке>
</Список продуктов>

How to properly organize by BEM or independent blocks.
That's right?
<div class="product-list">
    <h2 class="product-list__title"></h2>
    <div class="product-list__item">
        <div class="product-list__img"></div>
        <div class="product-list__title"></div>
    </div>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
un1t, 2015-03-02
@un1t

item here it is more convenient to make a block, not an element

<div class="product-list">
    <h2 class="product-list__title"></h2>
    <div class="product-item">
        <div class="product-item__img"></div>
        <div class="product-item__title"></div>
    </div>
</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question