I would like to know how I can make my site responsive for specific devices using:
window.screen.availHeight
window.screen.availWidth
So I want to make my website responsive with JS.
I think it’s called “Browser detection”.
I would like to know how I can make my site responsive for specific devices using:
window.screen.availHeight
window.screen.availWidth
So I want to make my website responsive with JS.
I think it’s called “Browser detection”.
you may use vh or vw measurment units. like: height: 100vh;
that means 100% of full viewport height. similar for width using vw.
I think you over complicate trying to use js instead of css.
bump… anyone?