I realise examples of this have been explained (http://css-tricks.com/what-is-vertical-align/) but I have a variation of the problem.
I would like to vertically align an image in a div.
The image height can change (as new images are uploaded by the user) the div height is fixed.
I have the following example working in FF but not IE. Is this possible?
Many thanks. :)
#Image_Home_Left {
height: 380px;
line-height: 380px;
width: auto;
position: fixed;
float: left;
}
#Image_Home_Left img {
vertical-align: bottom;
margin-right: auto;
margin-left: auto;
}