Horizontal scrollbars on web sites and HTML apps are generally bad for usability and unwanted. It's reasonably common to find them cropping up unexpectedly and I'm in need of a way to quickly debug and remove them.
What is the quickest and easiest way to find offending HTML elements in your design?
And is there a script or tool to automate this?
Yes, you can go through your page deleting/hiding elements one by one until you find a suspect, but this is time consuming, especially if there are multiple offending elements. It would be great to click a shortcut or run a script and have all the suspected elements highlighted, outlined or printed to the console.
To clarify: the problem is not how to solve it, but how to detect it. I'd like a general solution which can work whenever this issue appears.