D
D
Denwebart2016-02-13 18:58:04
css
Denwebart, 2016-02-13 18:58:04

What is the correct way to change the width of the bootstrap 3 container to a larger one?

Hello. The default width of the bootstrap 3 container is 1170px.
I need the width of the container to be 1300px.
I used the customizer on the bootstrap 3 site, set the value @container-large-desktop = 1300px + @grid-gutter-width, which remained by default.
When it came to adaptability, I ran into a problem.
It turned out that in some cases the content width is larger than the screen width:

@media (min-width: 1200px) {
  .container {
    width: 1300px;
  }
}

Tell me, please, how to be?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey delphinpro, 2016-02-13
@Denwebart

breakpoint still needs to be changed
Media queries breakpoints - @screen-lg

S
Sanan Yuzb, 2016-02-13
@Sanan07

Use.container-fluid

P
Pavel, 2016-02-13
@mrusklon

go here getbootstrap.com/customize in the section Container sizes set the desired width, it will also not be superfluous to go over the rest of the parameters

G
GoodProject, 2017-03-22
@GoodProject

Here's a great video on how to make a Bootstrap grid the RIGHT size :)
https://www.youtube.com/watch?v=7j2MnoFeHJg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question