csstwitter-bootstrap

How to change the default background color white to something else in twitter bootstrap


I am building a web application where I have set my default color to navy blue using css. But when i added the twitter bootstrap css's in my page I did not find my navy blue color instead I found the white background color provided by twitter bootstrap.

My query is that what portion of css should I change in bootstrap to change my page's background.


Solution

  • You can overwrite Bootstraps default CSS by adding your own rules.

    <style type="text/css">
       body { background: navy !important; } /* Adding !important forces the browser to overwrite the default style applied by Bootstrap */
    </style>