Answer the question
In order to leave comments, you need to log in
How to set block positioning according to BEM?
The Yandex documentation on BEM says "The block should not affect its environment, i.e. the block should not be given external geometry (in the form of indents, borders that affect the size) and positioning." And how to set the block its position on the page?
Answer the question
In order to leave comments, you need to log in
To do this, we use mixes for this block. For example our block
<div class="parent">
<ul class="menu-list">
<li class="menu-list__item">1</li>
<li class="menu-list__item">2</li>
<li class="menu-list__item">3</li>
</ul>
</div>
<div class="parent">
<ul class="menu-list parent__menu-list">
<li class="menu-list__item">1</li>
<li class="menu-list__item">2</li>
<li class="menu-list__item">3</li>
</ul>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question