element overflow property code example
Example 1: 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);
}
}
);
Example 2: What is a overflow property
/*
Overflow Property in CSS Controls the overflow of one element over another
*/
// If we didn't want it to overflow we can just do this
selector {
overflow: hidden;
}