0

I've included bootstrap from CDN, and then my style.css. I want to manipulate the width of .container class, but I don't want it to be fully get attached to the sides. I have read that if I include my custom style.css after the cdn fetch of bootstrap, I can manipulate the bootstrap.

col-md-12 gives me like this:

      [                                                                   ]

However, I want to expand it a bit more, but not like container-fluid. I just want to expand it horizontally just a little bit on each side. Like this:

   [                                                                          ]

What is the proper way to achieve this?


Edit:

This is what I want enter image description here

This is what col-md-12 gives:

enter image description here

senty
  • 10,294
  • 23
  • 99
  • 215

1 Answers1

3

Good approach is to change this values (you can also use customizer provided by Bootstrap).

@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
max
  • 8,254
  • 3
  • 20
  • 52