Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

css find overflowing elements

// Copy paste this into your browser console
var docWidth = document.documentElement.offsetWidth;

[].forEach.call(
  document.querySelectorAll('*'),
  function(el) {
    if (el.offsetWidth > docWidth) {
      console.log(el);
    }
  }
);
 
PREVIOUS NEXT
Tagged: #css #find #overflowing #elements
ADD COMMENT
Topic
Name
9+5 =