Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Twitter Bootstrap responsive layout with 1000px max width

Posted on 2013-06-10
6
Medium Priority
?
2,462 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
DFW AZURE MEETUP TONIGHT FRI 6PM

We will be discussing what Azure Stack is, how does it fit into the suit of offerings that Azure has currently, and where can it fit into your organizations technology stack. We will also be discussing limitations of the platform while covering various applicable scenarios.

 
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 53

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

688 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