O
O
olya_0972018-11-05 03:24:39
Layout
olya_097, 2018-11-05 03:24:39

Is this how you can write according to Bam, or do you need to do it differently?

<section class="feature">
      <div class="feature__column-left">

        <h2 class="feature__title">Настоящий городок</h2>
        <p class="feature__number">N1</p>
        <p>седона не аттракцион для туристов, там течет своя жизнь</p>
      </div>

      <div class="feature__column-right">
        <picture>
          <source srcset="photo-city_desktop.jpg" type="" media="(min-width:1200px)">
          <source srcset="photo-city_tablet.jpg" type="" media="(min-width:768px)">
          
          <img src="[email protected]" alt="">
        </picture>
        
      </div>
    </section>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
A person from Kazakhstan, 2018-11-05
@LenovoId

the idea in BEM is not just naming blocks, but that the modifier inside the block could live a separate life inside another block and be displayed in exactly the same way,
блок-элемент_модификаторbut in your case you just have modifiers
you can read here

V
Vitaly Pershin, 2018-11-05
@Get-Web

In your case, it would be more correct to create a
feature_column element and modify it with a key-value pair , something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question