Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Vertically centred images with slideshow Re: Vertically centred images with slideshow

#102509
Anonymous
Inactive

You can do it with CSS if the height will be constant for the portrait *and* landscape images. For example, if portrait images are always 600px tall, and landscape 450px, then the difference in height is 150px and applying a padding-top of 75px to the landscape images will center them.