Title: Screen width
Last modified: November 11, 2017

---

# Screen width

 *  Resolved [jrcollins](https://wordpress.org/support/users/jrcollins/)
 * (@jrcollins)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/screen-width-3/)
 * 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 8 years, 4 months ago by [jrcollins](https://wordpress.org/support/users/jrcollins/).
    -  This topic was modified 8 years, 4 months ago by [jrcollins](https://wordpress.org/support/users/jrcollins/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [jrcollins](https://wordpress.org/support/users/jrcollins/)
 * (@jrcollins)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/screen-width-3/#post-9672132)
 * 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.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [media query](https://wordpress.org/support/topic-tag/media-query/)
 * [screen width](https://wordpress.org/support/topic-tag/screen-width/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [jrcollins](https://wordpress.org/support/users/jrcollins/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/screen-width-3/#post-9672132)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
