How can I prevent images from stretching in a website slideshow?

Hello,

I have a slideshow on my website, but, when the width of the screen changes, such as, a smaller/larger tab or a different device’s screen, the images stretch/shrink horizontally. How can I prevent this and preserve the dimensions of the photos?

Thanks in advance

Screenshots:

Please provide website url and if your store is password protected then also provide password

1 Like

Here is the website

Please place this code at the end of theme.scss

.home-slideshow .slick-slide img {
height: unset !important;
}

There is no themes.scss file for this website. Do you know where I should put it?

please place this code in theme.liquid in betweeb Like

// my given code here
1 Like

Hmm, it still looks like the slideshow, thus the images, are still being stretch based on width of window.

Please place this code at the end of file where the code is written for that content. the file may be Section → hero-slider.liquid.

Because it is overwriting my code

2 Likes

Awesome! It worked. Thank you so much.

Could you explain what the code does? Does it just lock the height of the img?

I just set the height to under where before height was fixed so that images were streched.

2 Likes