jquery - How do I implement image elements of unequal width in simplyScroll? -
i'm using simplyscroll v1 horizontally scroll images of varying width list items containing images of fixed width.
you can view scrolling content here.
how achieve list items varying width?
the author suggests following:
if want scroll unequal size elements try putting them in container div, initialising simplyscroll on (note hack double amount of elements scrolled!)
the list appears within container div:
div.simply-scroll-container what author mean "initializing" on container div?
a similar thread exists here though ambiguous me. appreciated.
the width of li set in simply-scroll css file, if wish use varying sizes can remove width property:
before: .simply-scroll .simply-scroll-list li { float: left; /*width: 290px;*/ width: 290px; /*height: 200px;*/ height: 180px; }
after: .simply-scroll .simply-scroll-list li { float: left; /*height: 200px;*/ height: 180px; }
Comments
Post a Comment