Notes: Overriding Bootstrap
You can override Bootstrap CSS by creating your own CSS file and adding it to the <head>
section of your web page. If you have imported the Bootstrap styles in the head section, add your new custom.css
file after the Bootstrap file or import. The most recent CSS style will be the style.
Here's how you write code to add the custom.css
file to HTML:
You can even use the same style name as Bootstrap in your custom file, which will replace the style.
For example, Bootstrap is specifying that all of the HTML head tags should styled according to these rules:
If the design requires that h1
headers have a larger margin-bottom, you can add this to your customer.css file:
Last updated