I've been reading in multiple places that if you measure images in percentage, that the percentage is based on its parent container. Given the following code, I cannot understand why two different images, given the same height and width percentage would yield two slightly different size outputs.
div {
border: solid black;
}
img {
width: 40%;
height: 40%;
margin-right: 5%;
}
body {
background-color: white;
}
<div>
<img src="../images/458.jpg">
<img src="../images/650S.jpg">
</div>