Last active
September 9, 2018 20:11
-
-
Save nfabredev/a838e2308bc6730ce40a9645ba05e4b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var docWidth = document.documentElement.offsetWidth; | |
[].forEach.call( | |
document.querySelectorAll('*'), | |
function(el) { | |
if (el.offsetWidth > docWidth) { | |
console.log(el); | |
} | |
} | |
); | |
// Courtesy of: https://css-tricks.com/findingfixing-unintended-body-overflow/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment