Take a look at http://twitter.github.com/bootstrap/1.4.0/bootstrap.css , you will notice that it defines dumps and styles in the html root elements.
For instance:
h1 { margin-bottom: 18px; font-size: 30px; line-height: 36px; }
So, if your style.css already defines a style for h1 , or if your layout expects h1 to have a different marker, your layout will not look as expected.
The Twitter boot file is usually used when starting a project, not that you can fully connect to existing project style sheets without any problems.
An alternative is to use their LESS stylesheets if you want to include, for example, only forms and table styles. ( using Bootstrap with Less ).
<link rel="stylesheet/less" type="text/css" href="lib/tables.less"> <link rel="stylesheet/less" type="text/css" href="lib/forms.less"> <script src="less.js" type="text/javascript"></script>
You won't want to use lib/boostrap.less as it includes everything, but you can include other LESS stylesheets that work for you. Be careful just turning on a subset of twitter boostrap may not work as expected, especially if you don't have css dumps set. If this does not work for you, use Preboot.less instead . Note: Rails 3.1 supports LESS compilation.
If you still want to use the full bootstrap css tweeter in your application, you can create a new rail layout template that uses boot twitter. Then create new pages using twitter boostrap, specify render :layout => "boostrap" or something similar, so that your new pages use the twitter boot buffer layout. Then, when you are ready, you can transfer the old pages to the new layout template.
source share