Barry The Wizard
Barry The Wizard

Reputation: 1318

Bootstrap - change color panel-primary

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

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

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

}

How can I change this blue color?

Upvotes: 3

Views: 22025

Answers (1)

haxtbh
haxtbh

Reputation: 3534

panel-primary is a class.

You will need to do it like this:

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

Replace the # before panel-primary with a . (leave the # on the colour as is)

The # is used when you reference an element ID in CSS. A . will reference a class.

Upvotes: 5

Related Questions