Bootstrap - changing color bar - primary

I used panel-primary to create a panel in Bootstrap. But now I want to change the default blue color.

I added css but with this change the panel keeps the color blue

#panel-primary {
background-color: #194719;

      

}

How can I change this blue color?

+3
twitter-bootstrap panel


source to share


1 answer


panel-primary

is a class.

You will need to do it like this:

.panel-primary {
     background-color: #194719 !important;
}

      



Replace #

before panel-primary

with .

(leave #

as is)

#

used when you are referencing an element's id in CSS. A .

will refer to the class.

+5


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics