You can’t refer to screen width in css units, for example to set the size of an element.
vw
and vh
refer to the browser.
But you can refer to it in media queries by using device-width
instead of width
Though I’m curious why you ask, as width
is generally a more useful measurement.
3 Likes