I want to change the color and size of a horizontal rule, but there is bootstrap default styling. How can I override it without manually changing bootstrap css?
hr {
background-size: 4px;
border-top: 4px solid #FFF0F2;
border-color: #FFF0F2;
border: 4px;
}
3
Answers
This problem was solved simply by putting my custom CSS sheet after the Bootstrap library
There are 3 ways to add your styling to the
<hr>
element. Check the following. You can override the bootstrap styling from your styling as below.PS: This answer is a general answer with all possibilities
Inline Styling
Internal Stylesheet
External Stylesheet
Works in bootstrap 4+ if you just want to change the color to use success/danger/etc… use bg-<theme>