A
A
Andrei Popov2019-02-20 14:55:24
css
Andrei Popov, 2019-02-20 14:55:24

BEM. Positioning element, parent element?

Is it normal according to BEM to set the positioning of an element, the parent element, through flex?

.header__menu{
      display: flex;
}
   .header__element-menu{
      padding: 0 30px;
      display: flex;
      align-items: center;
}

<div class="header">
        <nav class="header__menu">
            <a class="header__element-menu">Тренировки</a>
            <a class="header__element-menu">Питание</a>
            <a class="header__element-menu">Магазин</a>
        </nav>
</div>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question