bmdms
October 27, 2020, 8:01pm
1
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
Please place this code at the end of theme.scss
.home-slideshow .slick-slide img {
height: unset !important;
}
bmdms
October 29, 2020, 5:09pm
5
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
bmdms
October 30, 2020, 4:07pm
7
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
bmdms
November 2, 2020, 3:05pm
9
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