Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Leanne D
Leanne D
4,550 Points

Slick slide image aspect ratio help

I have a slick slider in my WordPress site, using bg images on the slick-slide.

I need to keep them at a set aspect ratio, which I know how to do and normally works great, but it's proving to be tricky on the slick slider.

When I add my usual aspect ration 'padding-top' to the slide, It just makes the slide/image really long: you can see this here: https://codepen.io/pixelboutiqueuk-the-lessful/pen/zYrZJgQ?editors=0110

When I add the padding-top to the slider itself, this looks like the right size, but then the slide image is pushed out of view (to the bottom).

Can anyone help?

Thanks