Last active
August 29, 2015 14:15
-
-
Save jmonterroso/8ab0151153049280bd1c to your computer and use it in GitHub Desktop.
Larger element than width
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
$('*').each(function () { | |
var viewportWidth = 1024; | |
var outerWidth = $(this).outerWidth(); | |
if( outerWidth > viewportWidth ){ | |
//prints element in console so you can check what's the element | |
console.log($(this)[0]); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment