0

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 !

Rezasys
  • 153
  • 2
  • 12

2 Answers2

2

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!

Marcel Schmid
  • 424
  • 2
  • 15
1

use !important .. for example:

element{color: red !important}
A7S
  • 141
  • 1
  • 8