How do you override a BootStrap CSS file? I have created another file called site.css and linked it to the index.html file; however, this still does not allow me to override. Is this not a correct action?
-
Possible duplicate of Custom css overridden by Bootstrap in browservanburen– vanburen2016-07-28 03:04:00 +00:00Commented Jul 28, 2016 at 3:04
-
Is it linked below the Bootstrap one? Please show that. Also show what style you want to override and how you are trying to, and the current result. Tag me...user5306470– user53064702016-07-28 03:40:22 +00:00Commented Jul 28, 2016 at 3:40
Add a comment
|
2 Answers
If you want to override the bootstrap CSS so you can try this trick. put your bootstrap css and site.css in head section like below example
<link rel="stylesheet" type="text/css" href="bootstrap.css">
<link rel="stylesheet" type="text/css" href="site.css">
now site.css will be override to bootstrap.css :)