Y
Y
Yuri Ivanov2022-01-13 12:17:08
BEM
Yuri Ivanov, 2022-01-13 12:17:08

BEM layout how to do it right?

Tell me please, I myself can’t figure out if
there is a
nav
nav__list
like everything is ok, but links appear in the nav__list
li nav__item
a nav__link
are nav__list elements, or are these nav elements
just want to show that item, link are elements of the nav list, but then it turns out the nav__list__link element ->element, which seems to be not ok according to bam

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2022-01-13
@asvici

Mix .

<nav class="nav">
   <ul class="nav__list nav-list">
      <li class = "nav-list__item"><a class="nav-list__link" href="#"></a></li>
   </ul>
</nav>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question