Steve Bals
Steve Bals

Reputation: 1979

How to change bootstrap3 deafult container width changes

change bootstrap 3 default container width with out any alignment issue,

The default container width is

.container {
      width: 1170px;
}

I need to change

.container {
     width: 960px;
}

Upvotes: 2

Views: 104

Answers (2)

user3269697
user3269697

Reputation: 36

click and customizeBootstrap site and choose the size you require. set @gridColumnWidth and @gridGutterWidth variables.

example:

 @gridColumnWidth = 50px and @gridGutterWidth = 100px results on a 1000px layout.

Then download it.

Upvotes: 2

Dirgh
Dirgh

Reputation: 507

if you want only for that page then you can write a css in that file like

<style>
.container {
        width: 960px !important;
  }
</style>

or you can add it to your main tempalte css the same way with important keyword

Upvotes: 1

Related Questions