Answer the question
In order to leave comments, you need to log in
Am I using BEM classes correctly?
Good afternoon! Help me understand BEM and clarify some points, I have already read a bunch of articles, but I don’t fully understand.
Example
The example shows how I understand the use of BEM now. Please see an example and tell me what I'm doing wrong and how to do it better.
1. Do we write only its appearance in block styles, but not positioning? Or is still allowed in small quantities styles for positioning?
2. If the Block is only an appearance, then how to position it? In the example, I made 5 blocks, which are also elements of the header block. That is, the class of the block sets the view, and the class of the element sets the position. is this approach correct?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question