Answer the question
In order to leave comments, you need to log in
Is it possible to use an element and a block at the same time in a block?
Hello, the question arose whether a block can have an element and a block at the same time, for example, my code:
<header class="header">
<div class="logo"><img src="img/logo.png" alt="Logo"></div>
<nav class="menu">
<ul class="menu-box">
<li class="menu-box__item"><a href="/" class="menu-box__link">Главная</a></li>
<li class="menu-box__item"><a href="/" class="menu-box__link">Услуги</a></li>
<li class="menu-box__item"><a href="/" class="menu-box__link">Наши работы</a></li>
<li class="menu-box__item"><a href="/" class="menu-box__link">Цены</a></li>
<li class="menu-box__item"><a href="/" class="menu-box__link">О нас</a></li>
<li class="menu-box__item"><a href="/" class="menu-box__link">Контакты</a></li>
</ul>
</nav>
<div class="header__number"><i class="fas fa-phone-volume"></i>(095) 097-22-63</div>
</header>
Answer the question
In order to leave comments, you need to log in
the block can be used everywhere
the element must be part of the block
and in order:
"menu" you get an empty block, for good you need to change it to something like this:
.menu
.menu__box
.menu__item
.menu__link
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question