jc_gmk
07-18-2007, 03:54 PM
I'm pretty confident when it comes to HTML and CSS but I cant for the life of me work out how to Vertically align images in a div.
I need to vertically align them in the middle.
The reason being is that the images are inserted dynamically, all of them have the same width but the height is variable therefore affecting the overall look.
i've tried:
1. margin-top:auto; & margin-bottom:auto;
2. vertical-align:middle;
3. text-align:center;
Any other ideas would be appreciated!
I need to vertically align them in the middle.
The reason being is that the images are inserted dynamically, all of them have the same width but the height is variable therefore affecting the overall look.
i've tried:
1. margin-top:auto; & margin-bottom:auto;
2. vertical-align:middle;
3. text-align:center;
Any other ideas would be appreciated!