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;
}
body
aligns to the left instead of centre as before. Any suggestions? I've tried settingmargin
toauto
for left and right. – Radioactivebody
has amax-width
, just in case I want to do something outside the container. Anyway, setting that aside, I'm dealing with a fluid container. When I set my container to fluid, it expands to the entire body width. That's why I'm trying to set a maximum width for the body. – Radioactive@media (min-width: 768px) and (max-width: 979px) { .. }
, in your case would bemax-width:950px;
. – Charland