My goal is to have my h1 heading styled with Montserrat font in black and font weight 900. However, when I checked my website using Google Developer Tools, I noticed that the CSS code I applied is being overridden by the Bootstrap link. Unfortunately, deleting the Bootstrap link is not an option as it will affect the functionality of my navbar.
Is there a way to override the default bootstrap font weight of 500 and set it to 900 for my h1?
I attempted using a solution that involved including a SASS file in my CSS, but this only worked for Bootstrap 4 and not for the 5.3 version.
It seems that there are available CSS solutions to override Bootstrap 4 styles, but not specifically for Bootstrap 5.3.
h1 {
font-family: 'Montserrat', sans-serif;
line-height: 1.5; /* overridden to 1.2 */
font-size: 3rem;
font-weight: 900; /* overridden to 500 */
}
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="73111c1c07000701120333465d405d435e121f031b1240">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<h1>Montserrat black 900 font weight</h1>