Skip to content

Not able to style container within embla__slide with flex or grid #606

Closed Answered by davidjerleke
Patrikur asked this question in Help
Discussion options

You must be logged in to vote

@Patrikur it seems like you have overflow: hidden on the wrong element. Try removing all your CSS in the embla and embla__viewport class, and replace it with this:

.embla {
  position: relative;
}

.embla__viewport {
  overflow: hidden;
  width: 100%;
}

Additionally I would recommend you to add touch-action: pan-y; on your embla__container class.

Best,
David

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Patrikur
Comment options

@davidjerleke
Comment options

@Patrikur
Comment options

@davidjerleke
Comment options

Answer selected by Patrikur
@Patrikur
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants