Keep Ratio @ Image Carousel - Forum | JoomShaper
Awaiting an answer SP Page Builder

Keep Ratio @ Image Carousel

Asked by Steffen Chevalier 4 years ago Last activity 4 years ago

Hi there,

Is there a solution to keep the Ratio of Image constant?

My Site shows the Pictures like this:

(Wide-)Desktop stretch the Pic horizontally

Tablet seems to be nearly ok.

Mobile squeezes the Width.

the height option does not solve the Problem, The problem is only shifted.
I would like it so that the image isn't distorted, just zoomed in when needed.

thanks
Chevi

1 reply

Ariba Staff

Hello

Thank you for your query.

Please add the following css rule in custom css section.

.sppb-carousel-extended-item img {
  object-fit: cover;
}
Log in to reply.