Flexslider 100% width creates horizontal scroll-bar
Asked Answered
B

2

6

http://dl.dropbox.com/u/29703851/js/demo/index.html

This is demonstration.

I want to use flexslider with 100% width, but I get that strange additional width and horizontal scroll-bar when mouse cursor is outside of flexslider.

When I go over flexslider, horizontal scroll disappears. Any advices?

I use demo code, no css changes, no js changed. Just deleted all divs around, and left only one div with class flexslider.

Is there a proper way for 100% width?

Bubbly answered 14/2, 2013 at 0:39 Comment(0)
B
9

problem fixed for me with overflow: hidden; in .flexslider

Bubbly answered 14/2, 2013 at 2:23 Comment(1)
This introduces another big problem - missing pager dots.Imprimatur
L
4

That will also hide the "pager" dots if you do it that way. I solved it by adding the overflow:hidden; to the parent container. I'm working with a responsive layout, so parent is setting width as well.

Larocca answered 23/4, 2014 at 16:26 Comment(3)
I think this is the better answer, works well - the other one does hide the dots.Ianiana
Hide the pager dots only if you're showing the dots outside of the container, with negative margins.Whimwham
This is the answer. Good catch.Carlow

© 2022 - 2024 — McMap. All rights reserved.