Utilizing a CSS Media Query to modify the appearance of my page for narrow screens. For example, if the width is less than 300px, I will set the background color to blue.
@media all and (max-width: 300px) {
body{ background-color:blue;}
}
I recently came across an issue where if a user zooms in their browser (using Ctrl+Scrollwheel or on Chrome by going to Wrench>Zoom), the max-width still triggers at 300 actual pixels, not taking into account the zoom level. This could potentially disrupt more complex layouts of websites. Is there a way for the max-width media query to accommodate users with zoomed browsers?