How can I get jCarousel to be 100% wide instead of pointing in px?

I am working on asp.net and jQuery. I tried a lot of carousels, but they should all indicate the width in px. This means that my site looks abnormal at different resolutions. How can I make it occupy the entire width available to it?

Does anyone know any other plugin that easily and supports this feature?

+4
source share
1 answer

You can remove the width of the container and set the clip to 100% in css as:

.jcarousel-container-horizontal { /* width: 275px; <--- remove it */ } .jcarousel-clip-horizontal { width: 100%; /*<-- set it 100%*/ height: 75px; } 

Example:

http://jsfiddle.net/hgYmt/

on this demo page: http://sorgalla.com/projects/jcarousel/examples/static_simple.html

Since I cannot modify css files, I am using an important one, but the idea is the same.

+1
source

All Articles