0100200300400500600700800900 1000110012001300140015001600170018001900
102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090 102030405060708090
www.Mynott.uk

Media width test

The image below is fixed to the left of the viewport and won’t resize with different window widths so you can see the CSS “@media” width for the current device/browser.

For JavaScript, innerWidth and innerHeight ignore the scrollbar.  clientWidth and clientHeight are measured inside the scrollbar (if there is one).  CSS “@media” uses the innerWidth value.

Click the “refresh” button for the current values.

innerWidth: ?px  (CSS @media)
clientWidth: ?px

innerHeight: ?px
clientHeight: ?px

 
Useful for css media queries - particarly for mobile devices as some have quite suprising values.

JBM-Computing

part of J E Mynott Limited

web: www.Mynott.uk

site map / contentswebsite privacy
glossarycontact me
©2000-2025 JBM-Computing
Facebook Twitter YouTube print