I had a problem with a div extension with a gradient background (which is embedded in the body tag) at the bottom of the page when the browser view window is above the contents of the page.
I know that I can set my html, body and the corresponding div tag to 100%, but when I do this, the height of the div tag is equal to the height of the html and body tag, which is set by the size in the viewport. This either creates too much space in the div below the content contained in it (if the viewport is too large), even if the viewport is NOT above the page. Or it cuts off the contents in a div and the viewport will not scroll down (if the viewport is small)
You can see this problem at matthewelliot.com . If you zoom out to 25%, you'll see that the white gradient at the bottom is broken into a background image when the contents fill a div with an additional gradient. You may ask: βWell, who will do this? But I noticed this problem when I visited the site on my iPhone, holding hisβ portrait β, and Iβm sure that many others will have the same experience.
Let me know if you need another diagnostic code!
source share