W
W
WQP2016-11-06 13:59:01
css
WQP, 2016-11-06 13:59:01

How to combine BEM and bootstrap grid correctly?

Hello, is this code correct?

<section class="header">
  <div class="container">
    <div class="header__logotype">
      
    </div>

    <div class="row">
      <div class="col-md-8">
        <div class="header__nav">
          
        </div>
      </div>
    </div>
  </div>
</section>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
iBird Rose, 2016-11-06
@WQP

well, in general, if you use bam, then you also need to make your own grid, preferably, but since the combination of bam and bootstrap is now everywhere and everywhere, then yes. such an approach can be considered normal.

S
Serj-One, 2016-11-06
@Serj-One

.header__nav{
  @extend .col-md-8;
}

Either via mixins using scss grid option.

S
sim3x, 2016-11-06
@sim3x

ruby.bvision.com/blog/please-stop-embedding-bootst...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question