Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Responsive background images – fit one dimension, expand other dimension Reply To: Responsive background images – fit one dimension, expand other dimension

#150174
georgearnall
Participant

The only way I can think of would be to use javascript. CodePen. As far as I know, I don’t think this is possible without it but its only one line of jQuery.

You need to make sure to define each ‘slide’ with the same element such as the <section> so that it can set a height to all of the slides.

Hope this helps :)