Answer the question
In order to leave comments, you need to log in
How to position a Block in BEM?
Did I understand correctly that according to the BEM methodology, a Block cannot contain rules responsible for its positioning? In this case, how to position it? The first way, as I understand it, is to wrap it in an Element and position it, and the second way to add auxiliary classes something like this
<div class='slider float-left margin-top-40 pos-abs top-100'>...
Answer the question
In order to leave comments, you need to log in
it's not bam.
Not really "wrapping", it's just that the elements are responsible for positioning, and the blocks set the basic styles.
<!-- у элемента в принципе не обязательно должен быть блок, но желательно -->
<div class="page__wrapper block">
<div class="block__header header"></div>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question