Which element is causing the horizontal scrollbar? Automated detection
In a narrower scope, you can use jQuery (to get the width) and node.scrollWidth
to get nodes that have content that overflow their bounds.
http://jsfiddle.net/tomprogramming/v3Q6W/3/