horizontally and vertically center image within a div
Posted on 2014-02-11
I want to centre an image within a div (height = 200px, width = 200px)
The image is 175px wide, height is dynamic
Horizontally aligning is not an issue, but vertical alignment is not working.
I don't want to use a background-image
The solution must work in IE7&8 (so not a CSS3 solution)
There are lots of samples in EE but I can't get any to work in IE7 with images that have dynamic heights, without setting the background-image