/* root element for the scrollable. when scrolling occurs this element stays still. */ .scrollable { /* required settings */ position:relative; overflow:hidden; width: 314px; height:300px; /* custom decorations */ border:1px solid #ccc; background:url(/scroller/scrollable/h300.png) repeat-x; } /* root element for scrollable items. Must be absolutely positioned and it should have a extremely large width to accomodate scrollable items. it's enough that you set the width and height for the root element and not for this element. */ .scrollable .items { /* this cannot be too large */ width:20000em; position:absolute; clear:both; } .scrollable .items .items_text{ width: 300px; height: 145px; overflow: hidden; border: 1px dotted #000; margin-left: 5px; margin-top: 2px; } .items div { float:left; width:320px; } /* single scrollable item */ .scrollable img { float:left; xmargin:20px 5px 20px 21px; background-color:#fff; padding:2px; border:1px solid #ccc; xwidth:100px; height:100px; -moz-border-radius:4px; -webkit-border-radius:4px; } /* active item */ .scrollable .active { border:2px solid #000; position:relative; cursor:default; }