Find that element that goes off page

Just open up the browser’s console and run the following.

snippet.1document.querySelectorAll("*").forEach(el => { 2 if(el.offsetWidth > document.documentElement.offsetWidth) { 3 console.log(el); 4 } 5}) 6

If an element on the page is wider than the document, it’ll get logged to the console.


Most browsers allow you to right click on the elements that were printed to the console and scroll them into view. Unfortunately, you still have to fix the issue, but at least you’re one step closer to the solution.