Answer the question
In order to leave comments, you need to log in
How to indent between blocks in BEM?
For example, I have this piece of code:
<div class="bem-block"></div>
<div class="another-bem-block"></div>
The block should not affect its environment, i.e. the block should not be given external geometry (in the form of padding, borders that affect dimensions) and positioning.
Answer the question
In order to leave comments, you need to log in
All blocks are simultaneously children of some parent container. Indentation must be specified for classes corresponding to the elements of the parent block. Further, these classes can be screwed either directly to the blocks under discussion, or to intermediate wrapper divs.
Recently answered a similar question:
https://toster.ru/answer?answer_id=1080988#answers...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question