I've been working on making my website fully responsive, but I've run into an issue where it won't recognize anything below 980px in width. Here is the CSS code I'm using:
@media screen and (max-width:1029px){
h1{
font-size: 75px;
}
h2{
font-size: 25px;
}
}
@media screen and (max-width:980px){
h1{
font-size: 70px;
}
h2{
font-size: 20px;
}
}
@media screen and (max-width:954px){
h1{
font-size: 65px;
}
h2{
font-size: 15px;
}
}
It's strange that once I hit the 980px mark, it seems to be a cut-off point where any changes below aren't recognized. Even adding !important
doesn't seem to make a difference. What could be causing this magical barrier at 980px?