Setting width: 50% to the slide class is not working as intended
#257
-
|
Hello, First of all, thank you for an amazing library! My issue is that I am not able to set 50% (or other ration) of the width of the embla container to each slide and have a gap between them using a flexbox. Simplified code below: I managed to reproduce the issue here, the slides are not even showing. I believe it has something to do with the Embla's calculations rather than it being a style issue (please prove me wrong 🙏). I got it working in another project, but the other issue is that the last column in the viewport is always overflowing outside the container (exactly by how much the gap is). I noticed that in all examples |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
Hi @stepanjakl, I don’t have access to my computer right now. Have you worked your way through these guides in the docs: ? Best, |
Beta Was this translation helpful? Give feedback.


Hi @stepanjakl,
I don’t have access to my computer right now. Have you worked your way through these guides in the docs:
?
Best,
David