You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jCarousel plugin always align the current item to the left side. But, only in the last item, it is aligned to right. It is correctly, because is the last item and has no more content after.
But, in some cases, when the wrapper is small, is better to align the last item to the left too.
jCarousel plugin always align the current item to the left side. But, only in the last item, it is aligned to right. It is correctly, because is the last item and has no more content after.
But, in some cases, when the wrapper is small, is better to align the last item to the left too.
See the fiddle: https://jsfiddle.net/d48oqxyj/
Items 1 to 5 is touching the red border. But, item 6 is touching the green border, because is the last.
There's a way to make the last item to touch the red border? With this solution, after the last item we got a white space.
I tried to add a 'fake item' after the last item, but is not a good solution. Perhaps there's other much better.
My current code is (fiddle above):
HTML
JS
The text was updated successfully, but these errors were encountered: