There seems to be a height mismatch issue between the container and the image inside it when the parent is floated, but not the child. However, when both are given the float property, the height matches perfectly. Why is this?
<div class="parent"><img src="images/trest.png" class="image"></img></div>
Height Mismatches:
.parent{
float:left;
}
.image{}
Perfect Alignment:
.parent{
float:left;
}
.image{
float:left;
}