Rezasys
Rezasys

Reputation: 153

Calling a custom css after bootstrap doesn't change it?

Here is my simple code

<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/sub-cat.css">

I don't know what's exactly wrong, I wanna change "Caption" class of bootstrap I wrote my code in "sub-cat.css" and when I see the inspect elements my changes didn't apply !

Upvotes: 0

Views: 358

Answers (2)

A7S
A7S

Reputation: 141

use !important .. for example:

element{color: red !important}

Upvotes: 1

Marcel Schmid
Marcel Schmid

Reputation: 424

I make a guess, that bootstrap uses more specific selectors than you.

Like: .container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px;}

vs

.container{width:940px;}

if this is the case, just make sure you use the same or more precise selectors.

Another way is to use !important, but thats not the best way to go!

Upvotes: 2

Related Questions