skip to Main Content

I’m using twitter bootstrap and I wanna set my page background-color to #f8f8f9. But I think the twitter bootstrap default white background is getting in the way.

I read and tried the methods in these as well:

How to change twitter bootstrap background color

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

assign background color in twitter bootstrap 3

I tried

body{ background-color: #f8f8f9 !important};

in an external CSS file and inline as well. But none worked.

Any idea how to overcome this problem?
Thanks in advance!

2

Answers


  1. Use Less. In there, it’s just a color variable that needs to be changed. Then, compile it again and your new background color should apply.

    If you are not sure where to begin, this generator should help you: http://bootstrap-live-customizer.com

    Login or Signup to reply.
  2. your Code work well,color with Hex ID #f8f8f9 is what you see after run code.

    http://www.color-hex.com/color/f8f8f9

    I offer try this code and see work or not?

    body {
    
           background-color: #3b3ba9 !important;
    }
    

    if work well so your code is ok, else find css rule that overlap this rule.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search