Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to place marginX between elements on autoWidth=true? #330

Open
brenodss opened this issue Nov 25, 2024 · 1 comment
Open

Comments

@brenodss
Copy link

Autowidth works very well, the problem is that is necessary either create a responsive carrousel using the responsive object or put margin manually on alice-carrousel li item.

li {
    margin: 0 15px !important;
}

This creates proper spacing but breaks the carousel's scroll calculations - the last items become inaccessible because the maximum scroll position is reached too early.
Is there a way to achieve proper item spacing while maintaining both autoWidth functionality and correct scroll behavior?

@maxmarinich
Copy link
Owner

Hi, @brenodss!
Provide the code sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants