Find overflowing elements in web page

Find overflowing elements in your web page;
Just paste following code in console of element inspector.

 var docWidth = document.documentElement.offsetWidth;

[].forEach.call( document.querySelectorAll('*'), function(el) {
	if (el.offsetWidth > docWidth) {
	console.log(el);
	}
});
Advertisements