I recently incorporated Bootstrap into my project, but I've encountered an issue with the fixed heading sizes. I'm attempting to modify the font size of my project, especially because the h1 and h2 text appears overly large on mobile devices. Strangely enough, when I try to adjust the font-size of the h1 and h2 tags, my changes seem to be disregarded, and upon inspection, there are lines striking through the code that alters the font-size. I even attempted using media queries but to no avail.
Code:
h1{
font-size: 15px;
padding-bottom: 0px;
margin-left: auto;
margin-right: auto;
text-align: center;
color: #E85A4F;
}
h2{
font-size: 17.5px;
}
p{
font-size: 15px;
}
@media only screen and (min-width: 576px){
h1 {
font-size: 20px;
padding-top: 25px;
}
}
Interestingly, adjusting the font-size of paragraph text works fine, but I'm struggling to find a similar solution for the heading font size. Is there a method to adjust the heading font size in a similar manner?