I have written the following media query that is not behaving as expected. The change is occurring at 1537px not 1024px. I am using a Retina screen and this code is contained within a SCSS file in a project bootstrapped with create-react-app 3.
I've done some research and found that my device pixel ratio is 3. Would that effect how I'll need to write my media queries?
My CSS:
&--info-container {
border: 5px solid red;
@media (max-width: 1024px) {
border: 5px solid green;
}
}
In my index.html:
<meta name="viewport" content="width=device-width, initial-scale=1" />
Thanks very much!!