how to find the width of screen in html code example Example: width in % of a screen css 1vw = 1% of viewport width 1vh = 1% of viewport height