Created
June 5, 2018 00:14
-
-
Save emmanuelbarturen/e126b8e9f1cff1c07b3d7dee27def859 to your computer and use it in GitHub Desktop.
Check clases that generate horizontal scroll
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
# Only copy-paste in console the follow | |
var docWidth = document.documentElement.offsetWidth; | |
[].forEach.call( | |
document.querySelectorAll('*'), | |
function(el) { | |
if (el.offsetWidth > docWidth) { | |
console.log(el); | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment