I have a total of 3 different stylesheets for my website:
<link rel="stylesheet" media="(max-width: 579px)" href="css/style-small.css">
<link rel="stylesheet" media="(min-width: 580px) and (max-width: 799px)" href="css/style-md.css">
<link rel="stylesheet" href="css/style.css">
Within the main style.css
file, there is a specific media query that targets larger screens:
@media only screen and (min-width:965px){
//css styles
}
Up to this point, everything seems to be functioning correctly. However, when it comes to the media query inside the style-md.css
file:
@media only screen and (max-width:756px){
nav.top-right{
display: none;
}
blockquote{
font-size: 1.35em;
width: 80%;
}
}
For some reason, this specific media query appears to be completely ignored. I can confirm that the CSS code exists by inspecting the page using Chrome's developer tools in the Sources tab. This issue persists even after refreshing the page. It doesn't seem to be a matter of precedence since when inspecting the targeted elements, the CSS code is visible but not being applied.