Solved

Twitter Bootstrap responsive layout with 1000px max width

Posted on 2013-06-10
6
2,414 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 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 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

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
auto play video on web page 4 39
White space in figure / img 4 18
how to customize the text in the legend in highcharts 3 28
Regular Expression needed 4 13
Find out what you should include to make the best professional email signature for your organization.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

685 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