Y
Y
Yevhenii K2016-05-08 15:58:13
HTML
Yevhenii K, 2016-05-08 15:58:13

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

1 answer(s)
B
bro-dev, 2016-05-08
@xPomaHx

You need to write in such a way that when you transfer a piece of html from one place to another, you have to edit the css to a minimum.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question