B
B
Bob_102020-07-30 13:22:33
HTML
Bob_10, 2020-07-30 13:22:33

How to organize the structure of this part of the site according to the BEM methodology?

5f229f4b10e26862527515.jpeg
How to organize the structure of this part of the site according to the BEM methodology? Please give me an example. You can simply lay it out using div tags, for me the main thing is how exactly the classes of elements and blocks will look.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Kostenko, 2020-07-31
@Bobr_10

<header class="header">
  <div class="header__logo">logo</div>
  <div class="header__controlls">
    <nav class="nav header__nav">
      <ul class="nav__list">
        ...
        <li class="nav__list-item">nav item</li>
      </ul>
    </nav>
    <div class="header__buttons">
      <button class="button">Войти</button>
      <button class="button button--primary">Зарегистрироваться</button>
    </div>
  </div>
</header>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question