Answer the question
In order to leave comments, you need to log in
Through which class should I position the Bam element?
Let's say I have a menu like this:
<nav class="menu">
<ul class="menu__list">
<li class="menu__item"><a href="" class="menu__link">Visiting</a></li>
<li class="menu__item"><a href="" class="menu__link">Explore</a></li>
<li class="menu__item"><a href="" class="menu__link">Video</a></li>
<li class="menu__item"><a href="" class="menu__link">Gallery</a></li>
<li class="menu__item"><a href="" class="menu__link">Tickets</a></li>
<li class="menu__item"><a href="" class="menu__link">Contscts</a></li>
</ul>
</nav>
Answer the question
In order to leave comments, you need to log in
Any outer geometry for a block is set via the mix
. So, they menu__item
can have margins, such as margins, for example, because they are elements of the block, but the block itself menu
must be positioned via the mix.
If, say, it is .menu
inserted into .header
, then you need to additionally .menu
define the class .header__menu
, in which to set the positioning.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question