Answer the question
In order to leave comments, you need to log in
BEM: is it possible to use the Block_Modifier class without using the Block class?
Good afternoon. I'm learning BEM. The layout has a section that has the following structure:
<section class="offer-screen">
<div class="container">
<div class="offer d-flex">
<div class="stimul">
<p class="stimul__workshop"><i class="fa fa-graduation-cap"></i>Онлайн-мастер-класс</p>
<h2 class="stimul__title">Не потеряйте уникальную возможность. Бронируйте участие уже сегодня!</h2>
<p class="stimul__time"><i class="fa fa-clock"></i>9 апреля в 18:00<i class="fa fa-users"></i>Всего 40 мест</p>
</div>
<section class="offer-screen_blue>
<div class="container">
<div class="offer_blue d-flex">
<div class="stimul_blue">
<p class="stimul__workshop"><i class="fa fa-graduation-cap"></i>Онлайн-мастер-класс</p>
<h2 class="stimul__title_blue">Не потеряйте уникальную возможность. Бронируйте участие уже сегодня!</h2>
<p class="stimul__time_blue"><i class="fa fa-clock"></i>9 апреля в 18:00<i class="fa fa-users"></i>Всего 40 мест</p>
</div>
Answer the question
In order to leave comments, you need to log in
NO.
You can style like this
.block {} /* без стилей */
.block_green { color: green; }
.block_red { color: red; }
<div class"block block_green">
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question