css get width of screen code example
Example 1: get screen width javascript
window.screen.width
//or just
screen.width
Example 2: width in % of a screen css
1vw = 1% of viewport width
1vh = 1% of viewport height
window.screen.width
//or just
screen.width
1vw = 1% of viewport width
1vh = 1% of viewport height