If you want only a CSS solution only you need to do:
- Add
position:relative; and margin:0 to the <body> element. Add the following element as the first element in the <body> :
<div style="position:absolute; left:0; top:0; width:100%; height:100%; overflow:hidden;">
Move the <div class="botleft ..."> and <div class="botright ..."> to this div.
Applying position:relative to the <body> element and adding another element to it with position:absolute; left:0; top:0; width:100%; height:100% position:absolute; left:0; top:0; width:100%; height:100% position:absolute; left:0; top:0; width:100%; height:100% , you tell this element to "track" the size of the <body> element. And adding overflow:hidden; hides images overflowing from below.
The disadvantage of this solution is that you can see the cut out images at the bottom of the page. Well, nothing is perfect :)
This is what your DOM tree should look like after this change

To immediately see the results, you can run the following code from the browser console:
d = document.createElement("div"); d.style.cssText = "position:absolute; left:0; top:0; width:100%; height:100%; overflow:hidden;"; document.body.insertBefore(d, document.body.firstChild); d.appendChild(document.getElementsByClassName("botleft")[0]); d.appendChild(document.getElementsByClassName("botright")[0]); document.body.style.position = "relative"; document.body.style.margin = "0";
source share