Hi all,
After searching the forums, I’m stumped. I am trying to create a fullwidth easy slider with a static height and to a certain extend, I’ve been successful… but it requires me to manually resize each image with the same height and variable width.
I am using the fullwidth easy slider in Enfold and assigning a height value via custom css. Is there a way to automatically resize the photos inserted into the fullwidth easy slider to match?
Thank you!
Hi!
Please add following code to Quick CSS in Enfold theme options under Styling tab
.event-portfolio { height: auto; }
Best regards,
Yigit
Hi Yigit,
Thanks for the response. I previously had this code in the quick css:
.event-portfolio { height: 500px; margin-bottom: 30px; }
Changing it to “height: auto;” did not seem to change anything.
Hi!
Please flush browser cache and refresh your page a few times. It does make changes on my end
Regards,
Yigit
Hi Yigit,
Ah–thanks. I see that it changed, but I would like to have the height remain static at 500px and the images automatically resize to fit that height and a variable width (maintaining their aspect ratio).
Hi!
Thank you for using the theme. I hope you’re doing great.
You can use this but it will stretch the images:
.event-portfolio {
height: 500px;
}
.event-portfolio .avia-slideshow.image_no_stretch li img {
width: 100%;
height: 500px;
}
You should upload images with the same ratio and dimension to maintain a static slider height. If you want to maintain the image proportion of the images, you can use this:
.event-portfolio {
height: 500px;
}
.event-portfolio .avia-slideshow.image_no_stretch li img {
width: auto;
height: 500px;
}
Cheers!
Ismael
Hey Ismael,
That’s perfect — the second solution is exactly what I am after.
Thanks again!