Home > Back-end >  How do I create my own custom css file to customize my bootstrap?
How do I create my own custom css file to customize my bootstrap?

Time:07-11

Am trying to create my own custom css file to customize my bootstrap, how do I do that?Thank You

CodePudding user response:

You can override the bootstrap styles by using the !important after your own style. For example:

.btn {
 background-color: #ff0000 !important;
}

Another solution is to copy all the bootstrap CSS code and paste into a .css file and then you can edit it (if you go with this option, you need to import the .css file instead of the bootstrap original CSS file, of course).

  • Related