S
S
Shu902022-03-29 14:22:31
css
Shu90, 2022-03-29 14:22:31

How to correctly formulate classes according to bam?

Good afternoon, tell me please, if for example I have such a block, can I arrange the classes like this, and specifically the modifiers?

<section class="scroller">
        <div class="text-block scroller__text-block">
            <h1 class="text-block__h text-block__h_scroller">WE ARE CODE CAFE</h1>
            <p class="text-block__p text-block__p_scroller">sfdsgsdgdfhgfhgfhfghgfhf</p>
        </div>
</section>

in classes with the _scroller modifier, I also set the positioning of h1 and p because when I use the text_block class in other sections, their positioning relative to each other will be different. Are such modifiers bad form or is it normal?

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