Hi
I d like to have a fixed height on the slideshow and, possibly centered images. When using images as backgrounds you can easily do that with the background-size: cover css property, not so easy with an img element.
tx
Simone

Comments

nevets’s picture

You can apply the css height attribute to an image (img) tag.

cimo75’s picture

I don't think that this will solve my issue, if you apply an height property to the image element you ll probably get a distorted image as the width is fluid.

nevets’s picture

You should be able to set the height and width to auto (I know the reverse works)

cimo75’s picture

If set the width and height to auto then it is not responsive!

mengi’s picture

use max-height and max-width instead.

duntuk’s picture

"use max-height and max-width instead"

That doesn't really work. After max is reached, the image starts getting distorted.