S
S
SexyMonkey2017-11-08 16:09:04
Sass
SexyMonkey, 2017-11-08 16:09:04

How to use bootstrap 4 grid in scss?

In the third bootstrap, I used constructions like

.class{
@include make-md-column(6);
@include make-sm-column(8);
}

In the fourth I found only @include make-col(10);
How to specify the number of columns at a certain resolution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2017-11-08
@SexyMonkey

Through a media query.

.something {
  @include make-col-ready();
  @include make-col(12); // xs

  @include media-breakpoint-up(sm) {
    @include make-col(6); // sm
  }

  @include media-breakpoint-up(xl) {
    @include make-col(3); // xl
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question