News Module & CSS Problem
Posted: Sat Aug 11, 2007 12:52 am
I am currently stuck trying to implement some different styles for the news module; I am new to CMSMS and have used CSS previously but only in table based layouts.
With the CSS I want to use this approach that I found online; it adjusts the position of the background image on hover, the image includes two images / 'buttons' and when hovering over the link it adjusts the image. I can get this working outside CMSMS quite easily but am totally stuck within CMSMS.
I had some challenges getting the different styles to work at all (irresepctive of background image) but am completely missing something... Help! TIA
This is my CSS
And this is the news template
With the CSS I want to use this approach that I found online; it adjusts the position of the background image on hover, the image includes two images / 'buttons' and when hovering over the link it adjusts the image. I can get this working outside CMSMS quite easily but am totally stuck within CMSMS.
I had some challenges getting the different styles to work at all (irresepctive of background image) but am completely missing something... Help! TIA
This is my CSS
Code: Select all
div.itemheader a {
padding-left: 10px;
line-height: 24px;
text-decoration: none;
font-weight: bold;
color: #555555;
background-color: White;
background-image: url(images/cms/itemheader.jpg);
background-position: 0px 0px;
}
div.itemheader a:hover {
text-decoration: underline;
font-weight: bold;
color: #555555;
background-image: url(images/cms/itemheader.jpg);
background-position: 0px 24px;
}
Code: Select all
<div class="items">
<div class="itemheader">{cms_selflink page='58'}</div>
</div>
{foreach from=$items item=entry}
<div class="item">
{$entry->titlelink}
</div>
{/foreach}