• Resolved jrcollins

    (@jrcollins)


    I’m using a css media query to change the layout of my page when the screen width is 1225px or less. I always thought the width of the html element was equal to screen width (assuming there’s no padding or margins), but this doesn’t appear to be the case. With the html element highlighted in my browser’s developer tools, I can see the media query doesn’t come into effect until the html element is resized to 1205px.

    • This topic was modified 7 years ago by jrcollins.
    • This topic was modified 7 years ago by jrcollins.
Viewing 1 replies (of 1 total)
  • Thread Starter jrcollins

    (@jrcollins)

    I see now I was looking at the HTML element in an iframe and not the actual root html element.

Viewing 1 replies (of 1 total)
  • The topic ‘Screen width’ is closed to new replies.