I've seen multiple questions about a pretty simple task: how to vertically align an image in a div.
My code (http://jsfiddle.net/3cYtX/1/) is pretty simple:
.container {
width:200px;
height:200px;
background-color: green;
}
img.middle {
vertical-align:middle;
}
<div class="container">
<img class="middle" src="test.gif" width="80" height="40" />
</div>
My code does not align the image. How to fix it?