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

后端 未结 9 2036
再見小時候
再見小時候 2021-01-31 15:47

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 co

相关标签:
9条回答
  • 2021-01-31 16:27

    I'm using cdn boostrap, the solution that I found was: First include the cdn bootstrap, then you include the file .css where you are editing the default styles of bootstrap.

    0 讨论(0)
  • 2021-01-31 16:45

    Add your own .css file & put in it:

    body{
        background: navy;
    }
    

    Important: While including css files in html, first include the cdn bootstrap css, then only include your own .css file. This way stylings in your own css file overrides the default behaviour from bootstrap css.

    0 讨论(0)
  • Its not recommended to overwrite bootstrap file, just in your local style.css use

    body{background: your color !important;

    here !important declaration overwrite bootstrap value.

    0 讨论(0)
提交回复
热议问题