Closed mnifakram closed 9 years ago
you can't set slide's width in percents, because as you should know it is calculating from the width of parent, and slide's parent is wrapper which is much wider than swiper-container. Also slidesPerView:'auto' should be enabled
Closing as no further discussion
But if we know the width of the parent (on page load) can't we define the width of the slider-wrapper depending one the number of item, then set their width in % of the slider-wrapper width? I'm asking because I have a project with "fluid" typography, and when I increase the font size on the body, the slider breaks in IE10/11 (because the swipes width is in pixel).
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hey I want to make something that mix between responsive and partial, I set the swiper-container{ width:100%; height:100%} and the swiper-slide{width:90%; height:100%} but in the output I get the swiper-slide width 100% (the same as the container) how I can correct this. Check the demo http://jsfiddle.net/fnhb137d/