Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Twitter Bootstrap responsive layout with 1000px max width

Posted on 2013-06-10
6
Medium Priority
?
2,477 Views
Last Modified: 2014-02-22
Hi

I want to use Twitter Bootstrap as the base CSS for building a site that needs to be 1000px max width.  I believe the default Bootstrap layout width is 1170px.

What modifications do I need to make in order to specify the 1000px width and also still use the fluid columns with class="span4" etc?

Many thanks!
0
Comment
Question by:Danzigger
6 Comments
 
LVL 10

Expert Comment

by:Ishaan Rawat
ID: 39236624
acc. To me thats not good... To filter from the default... But if you want try this...

CSS
body { 
max-width: 1000px !important;
}
.container { 
max-width: 100% !important;
margin: 0 auto;
}

Open in new window

Put the above in the end..
HTML
<body>
    <div class="container-fluid">
          <div class="row-fluid">
               ..........
          </div>
    </div>
</body>

Open in new window

0
 
LVL 10

Expert Comment

by:Ishaan Rawat
ID: 39236629
oops sory its not .container its .container-fluid in the CSS snippet... Plz correct it...
0
 

Author Comment

by:Danzigger
ID: 39236646
Thanks for the reply.  So do you think the fixed width should be 1170?  ie. It's a problem to use 1000px width?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:Ishaan Rawat
ID: 39236661
Yes. Its bootstrap's default and we should not change it as it may directly or indirectly affect other things...

well, its your wish...
0
 
LVL 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 total points
ID: 39237846
You should  be able to make the container width what ever you want.  Then as long as you are using the row-fluid the span's are % so you should be good.
0
 
LVL 8

Expert Comment

by:PagodNaUtak
ID: 39879279
Ping
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question