I'm using this technique to show an overlay div
on top of my images. Where does the extra 4px of height for the overlay come from?
I'm talking about the extra height of the overlay that can be seen extending below the bottom of the image.
#container {
float: left;
position: relative;
}
#overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 200, 200, 0.5);
}
<div id="container">
<div id="overlay"></div>
<img src="http://via.placeholder.com/300x300" />
</div>