0 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 | 1100 | 1200 | 1300 | 1400 | 1500 | 1600 | 1700 | 1800 | 1900 |
10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 |
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.
site map / contents | website privacy |
glossary | contact me |