Hi Jeff,
I've not seen (cannot remember) the use of a seperate CSS file for the k2 content module - or one that uses the items container called "k2ItemsListContainer"
However this is how you could do it...
Option 1:
in module override php file add this line (adjust folder location/file names to suit your needs):
$document->addStyleSheet("
www.YourWebsite.com/template/html/mod_k2_content/Default/css/Override.css",'text/css',"screen");
Option 2:
if you add extra details in your module settings (width, height, colours etc):
$css_code = '
#k2ModuleBox'.$module->id.'.scrollable {
height: '.$scrollDisplayNumber_of_ItemsVert.'px;
overflow: hidden;
position: relative;
width: '.$scrollDisplayNumber_of_ItemsHoriz.'px;
}
#k2ModuleBox'.$module->id.'.scrollable .items {
clear: both;
position: absolute;
/* height: 20000em;*/
width: 20000em;
/*width: '.$params->get('ScrollableItemWidth').'px;*/
}
#k2ModuleBox'.$module->id.'.scrollable.vertical .items {
clear: both;
position: absolute;
height: 20000em;
width: '.$params->get('ScrollableItemWidth').'px;
}
#k2ModuleBox'.$module->id.' .items li {
float: left;
width: '.$params->get('ScrollableItemWidth').'px;
}
#k2ModuleBox'.$module->id.'.scrollable.vertical .items li {
float: none;
width: '.$params->get('ScrollableItemWidth').'px;
}
#k2ModuleBox'.$module->id.'.scrollable img {
background-color: #FFFFFF;
border: 1px solid #CCCCCC;
float: left;
padding: 0px;
margin: 6px 0px 4px 16px;
}
.scrollable .active {
border: 2px solid #000000;
cursor: default;
position: relative;
}
#mid_block a.browse {
padding: 0px;
margin: 12px 0px 0px 16px;
background-color:green;
float:left;
width:30px;
height:30px;
}
#mid_block a.left {
margin-left: 80px;
background-color:blue;
float:left;
}
';
$document->addStyleDeclaration($css_code);
Option 2 is from an example I built using the default k2 content module as a base, adding FlowPlayer scrolling to the items... This calls the Jquery scrolling to act on the module by CSS ID as this allows more than one scrolliong event/direction on the page at the same time... (rather than by CSS class)
Hope this helps..
Regards
Mat
PS
Please someone add the Notify option to this forum please!!
PPS
Jeff - I have also answered your Gallery in Tag page post (
getk2.org/community/New-to-K2-Ask-here-first!/9077-Image-Gallery-in-Tag-Layout) - I am the new notification system!!