overflow – Pietro Mingotti https://pietromingotti.com Technical SEO, Advanced CPC and Digital Analytics Case Studies Wed, 22 Jan 2025 20:49:01 +0000 en-US hourly 1 https://pietromingotti.com/wp-content/uploads/2023/04/cropped-cropped-Pietro-Mingotti-2023-Web-High-Res-1-32x32.jpg overflow – Pietro Mingotti https://pietromingotti.com 32 32 How to identify the element causing an overflow https://pietromingotti.com/how-to-identify-the-element-causing-an-overflow/ https://pietromingotti.com/how-to-identify-the-element-causing-an-overflow/#comments Wed, 22 Jan 2025 20:41:48 +0000 https://pietromingotti.com/?p=1388 Read more]]> With page builders it’s frequent to have a situation where the body of the page exceeds the browser’s viewport, resulting in an horizontal (or vertical) overflow. Identifying the culprit element can be very frustrating; but there’s a quick fix.

CSS Code Snippet to highlight all elements and identify the overflow

This works for Divi, Elementor, WordPress sites, non WordPress sites, really any kind of website, because all you need is just this CSS trick.

CSS

* {
  outline: 1px solid red !important;
}

And it will produce something like this:

identify overlow in website
As a result, all the elements in your page will be outlined, quickly showing you if any of them is overflowing their container.

You’re welcome.

]]>
https://pietromingotti.com/how-to-identify-the-element-causing-an-overflow/feed/ 2