V
V
Vitaly Ilnitsky2017-03-14 22:06:25
HTML
Vitaly Ilnitsky, 2017-03-14 22:06:25

Class naming in BEM?

Can I use this .header-page__main-nav___items___link style when nesting heavily, or how should I write it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg, 2017-03-14
@vetalil18

No , you need it like this:

.header-page__main-nav
.header-page__items
.header-page__link

D
dom1n1k, 2017-03-14
@dom1n1k

This question is one of the first to be discussed in all BEM guides!

S
Shamsudin Serderov, 2017-03-14
@Steein

BEM - and you don't need to ask
Adequate examples
How to work with CSS preprocessors and BEM

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question