css get screen width 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
Example 3: css set div width to screen
.container{
width:100%;
}