We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Has anyone thought of this?
<div id="test">H</div><br/> <div id="content" style="background-color:cyan; width:50%;">BLAH<div/> </body> <script> function work(){ var w = screen.width; var content = document.getElementById("content"); var width = content.clientWidth; var height = content.clientHeight; document.getElementById("test").innerHTML = width + " " + height + " " + w; } setInterval(work,60); </script>
var w doesn't change it's value when the page is zoomed. var width changes.
Some Maths and voila 😄
The text was updated successfully, but these errors were encountered:
unfortunately, screen.width updates as you zoom in Firefox for one.
screen.width
Sorry, something went wrong.
No branches or pull requests
Has anyone thought of this?
var w doesn't change it's value when the page is zoomed.
var width changes.
Some Maths and voila 😄
The text was updated successfully, but these errors were encountered: