Alignment with contained images and gap #952
-
|
Hello, I'm looking for the proper way to achieve alignment of my slide elements as shown below. There is about a 13px difference caused by the gap and also the image not using 100% width inside of its container. It's technically perfectly lined up with the hr seen in the image below but the gap makes it seem like it is not. Hope I'm explaining this well enough. Is there some standard way to deal with this issue when working with splide? Should I just force the image inside 'splide__slide__container' to 100% width? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I was able to fix the gap just with for anyone looking, although there's probably a better way? Maybe using the cover option? .splide__slide .splide__slide__container img { width: 100%; height: auto; } |
Beta Was this translation helpful? Give feedback.

I was able to fix the gap just with for anyone looking, although there's probably a better way? Maybe using the cover option?
.splide__slide .splide__slide__container img { width: 100%; height: auto; }