I'm building my first site with Twitter Bootstrap and experimenting with fluid layouts. I've set my container to be fluid, now the content inside takes up the full page width and adapts as I resize the browser.
The design I'm working on was created for a maximum width of ~950px.
I've checked variables.less
and responsive.less
, and the Bootstrap documentation; I can't quite work out how to make this happen.
I also tried adding the following to my style.css
:
body {
max-width: 950px;
}
Best Answer
You don't have to modify bootstrap-responsive by removing
@media (max-width:1200px)
...My application has a
max-width
of 1600px. Here's how it worked for me:Create bootstrap-custom.css - As much as possible, I don't want to override my original bootstrap css.
Inside bootstrap-custom.css, override the container-fluid by including this code:
Like this: