I want to turn off background-color for twitter-bootstrap. I can do this in inspect element by just crossing it out but how do i do this in the code? I tried doing body{background-color:none;} but its not working for me.
Asked
Active
Viewed 100 times
-3
-
1`none` is not a valid `background-color` value. ([source](https://stackoverflow.com/questions/8739665/is-background-colornone-valid-css)) – esqew Oct 31 '19 at 17:58
1 Answers
0
Tack on !important
to get the rule to stick:
body {
background-color: #000 !important;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" />
<body>
<div>Test</div>
</body>

esqew
- 42,425
- 27
- 92
- 132