exhaler Posted May 26, 2010 Share Posted May 26, 2010 Hi, i'm currently using jcarousel as a slider for galleries on the site. i'm trying to get jcarousel to work with two columns of images. like this: 1,2 3,4 5,6 css code: .jcarousel-skin-tango .jcarousel-container-horizontal { width: 760px; padding: 0px 40px; } .jcarousel-skin-tango .jcarousel-container-vertical { width: 75px; padding: 40px 20px; } .jcarousel-skin-tango .jcarousel-clip-horizontal { width: 760px; } .jcarousel-skin-tango .jcarousel-clip-vertical { width: 140px; height: 660px; } .jcarousel-skin-tango .jcarousel-item { width: 75px; height: 110px; } .jcarousel-skin-tango .jcarousel-item-horizontal { margin-left: 15px; } .jcarousel-skin-tango .jcarousel-item-vertical { margin-bottom: 10px; } .jcarousel-skin-tango .jcarousel-item-placeholder { background: #fff; color: #000; } /** * Horizontal Buttons */ .jcarousel-skin-tango .jcarousel-next-horizontal { position: absolute; top: 40px; right: 5px; width: 32px; height: 32px; cursor: pointer; background: transparent url(../../images/next-horizontal.png) no-repeat 0 0; } .jcarousel-skin-tango .jcarousel-next-horizontal:hover { background-position: -32px 0; } .jcarousel-skin-tango .jcarousel-next-horizontal:active { background-position: -64px 0; } .jcarousel-skin-tango .jcarousel-next-disabled-horizontal, .jcarousel-skin-tango .jcarousel-next-disabled-horizontal:hover, .jcarousel-skin-tango .jcarousel-next-disabled-horizontal:active { cursor: default; background-position: -96px 0; } .jcarousel-skin-tango .jcarousel-prev-horizontal { position: absolute; top: 40px; left: 5px; width: 32px; height: 32px; cursor: pointer; background: transparent url(../../images/prev-horizontal.png) no-repeat 0 0; } .jcarousel-skin-tango .jcarousel-prev-horizontal:hover { background-position: -32px 0; } .jcarousel-skin-tango .jcarousel-prev-horizontal:active { background-position: -64px 0; } .jcarousel-skin-tango .jcarousel-prev-disabled-horizontal, .jcarousel-skin-tango .jcarousel-prev-disabled-horizontal:hover, .jcarousel-skin-tango .jcarousel-prev-disabled-horizontal:active { cursor: default; background-position: -96px 0; } /** * Vertical Buttons */ .jcarousel-skin-tango .jcarousel-next-vertical { position: absolute; bottom: 5px; left: 43px; width: 32px; height: 32px; cursor: pointer; background: transparent url(../../images/next-vertical.png) no-repeat 0 0; } .jcarousel-skin-tango .jcarousel-next-vertical:hover { background-position: 0 -32px; } .jcarousel-skin-tango .jcarousel-next-vertical:active { background-position: 0 -64px; } .jcarousel-skin-tango .jcarousel-next-disabled-vertical, .jcarousel-skin-tango .jcarousel-next-disabled-vertical:hover, .jcarousel-skin-tango .jcarousel-next-disabled-vertical:active { cursor: default; background-position: 0 -96px; } .jcarousel-skin-tango .jcarousel-prev-vertical { position: absolute; top: 5px; left: 43px; width: 32px; height: 32px; cursor: pointer; background: transparent url(../../images/prev-vertical.png) no-repeat 0 0; } .jcarousel-skin-tango .jcarousel-prev-vertical:hover { background-position: 0 -32px; } .jcarousel-skin-tango .jcarousel-prev-vertical:active { background-position: 0 -64px; } .jcarousel-skin-tango .jcarousel-prev-disabled-vertical, .jcarousel-skin-tango .jcarousel-prev-disabled-vertical:hover, .jcarousel-skin-tango .jcarousel-prev-disabled-vertical:active { cursor: default; background-position: 0 -96px; } i tried playing around with the css increasing the width of <li>, but that messed up the height of the scroller any ideas?? Link to comment https://forums.phpfreaks.com/topic/202971-jcarousel-with-two-columns/ Share on other sites More sharing options...
exhaler Posted May 27, 2010 Author Share Posted May 27, 2010 i figured it out, i used 'size' in the configuration of jcarousel which is calculated depending on the size of the items / 2 Link to comment https://forums.phpfreaks.com/topic/202971-jcarousel-with-two-columns/#findComment-1064202 Share on other sites More sharing options...
ravi19587 Posted June 6, 2011 Share Posted June 6, 2011 i tried but i can't find out where to set height .If u know can u please tell me where to set heightor size Link to comment https://forums.phpfreaks.com/topic/202971-jcarousel-with-two-columns/#findComment-1225765 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.