Screen Resolution Detect

You’ll need to use JavaScript. To get the width and height of the screen: <script> var height = window.screen.height; var width = window.screen.width; </script> To properly take into account higher resolution devices, like Apple’s ‘retina’ displays you will want to multiply those values by the ‘pixel ratio’: <script> var pixelRatio = window.devicePixelRatio; var height = … Read more