I like the way the following carousel uses an horizontal scrollbar when javascript is turned off
http://jqueryfordesigners.com/demo/infinite-carousel.html

I found that the css property overflow:auto; does the trick here.

.infiniteCarousel .wrapper {margin:0 40px;
                                        min-height:10em;
                                        overflow:auto; 
                                        position:absolute;
                                        top:0;
                                        width:315px;
                                       }

I just thought that it could be of any help to post about it, as I didn't find any doc about it yet.

P.S. If it is in the doc or if this is a duplicate and I didn't find it, of course I'm gonna close this issue or feel free to do so. I'm going to try this and complete this post when I'm done.

Comments

Jerome F’s picture

Hi, I added the following to my theme.css
Of course if you want to use it you need to change your classes widths an heights to fit in your theme.
I think it's cool to use a scrollbar when javascript is disabled.

Does anyone think that the views carousel doc could mention this ?

/********************************************************** 	
 *             Carousel without javascript
**********************************************************/						

.pane-news-elephant-views div.view {
    width:100%;
    min-height:240px; 
    position:relative;  	    		
}                                                         	   

/* the view content div is used as a wrapper */
.pane-news-elephant-views div.view-content {  
    min-height:240px;      	                                 	       		
    overflow:auto;        	                                 	       		
    position:absolute;    	                                 	       		
    top:0;                	                                 	       		
    width:960px;          	                                 	       		
}                                    	                         	    		

ul.jcarousel-skin-custom {
    list-style:none outside none;   	                       
    margin:0;                       						    	
    padding:0;                      						    	
    position:absolute;              						    	
    top:0;                          						    	
    width:9999px;                   						    	
}										
										
.jcarousel-skin-custom li {
    display:block;
    float:left;
    height:220px;
    padding:0;
    width:170px;
    margin:0 49px 0 0;
} 
mfer’s picture

Except min-height does not work in IE6. Since more people use IE6 than use FF 3.5 + 3.6 combined it still needs to be supported.

Jerome F’s picture

That's right I just set height to a matching value and that's fine.