Notice that the bottom of the image does not reach the red outline below it, which is the bottom of the containing div.
What's going on here? This is counter-intuitive or not obvious to me anyway.
I'm not looking for a kludge to fix it. This is a made up example. I'm trying to master my understanding of css.
* {
margin: 0px;
padding: 0px;
}
.frame {
outline: 1px solid red;
padding: 0px;
}
.frame img {
/*border: 10px solid yellow;
outline: 10px solid blue;*/
}
<div class="frame">
<img src="http://lorempixel.com/200/300/city/200x300/" />
</div>