I am currently working on aligning images vertically within an image rotator (SlideDeck). At the moment, all the images are aligned at the top but I need them to be centered. The heights of the images vary.
I have tried several methods, including absolute alignment, with no success.
For more information, please visit:
UPDATE: I have managed to achieve vertical centering of the images in the image rotator by using a background solution. However, I am unsure if this is the most effective method as it lacks Alt text and may not work well on older browsers... Any recommendations?
.div {
background: url(image.jpg) no-repeat center center;
width: 960px;
height: 384px;
background-size: 100%;
background-width: 960px;
}