stylesheet prob with news module
Posted: Sat Sep 16, 2006 1:20 pm
Hi all,
the problem I'm working on is that I can't change the format of the news fonts, margins and paddings etc. (changing the stylesheets entries doesn't show an effect anyway...
)
Example:
This is how I call the news module within the template
(lang="en_US" is a workaround for a language problem I've got with the news module... never mind, it still uses and shows german lang.)
This is the news summary template
Classes are attached to tags. Should working this way, too. Anyway: It didn't work with originally tags... 
And this is how the classes are set in the stylesheet
Changes to this stylesheet code are without effect. Any CSS experts available? I'm stumped. 
BTW: Yes, I'm using {stylesheet} within the templates header section. The stylesheet works fine with the rest of the template.
Regards from Germany
Michael
the problem I'm working on is that I can't change the format of the news fonts, margins and paddings etc. (changing the stylesheets entries doesn't show an effect anyway...

Example:
This is how I call the news module within the template
Code: Select all
<div class="news-start">
{cms_module module="news" number="3" dateformat="%B %Y" detailpage="News" lang="en_US" moretext="weiterlesen" category="General"}
</div>
This is the news summary template
Code: Select all
<!-- Start News Display Template -->
{foreach from=$items item=entry}
{if $entry->formatpostdate}
<p class="NewsSummaryPostdate">{$entry->formatpostdate}</p>
{/if}
<p class="NewsSummaryLink">{$entry->titlelink}</p>
{if $entry->summary}
<p class="NewsSummarySummary">{eval var=$entry->summary}</p>
<p class="NewsSummaryMorelink">[{$entry->morelink}]</p>
{else if $entry->content}
<div class="NewsSummaryContent">
{eval var=$entry->content}
</div>
{/if}
{/foreach}
<!-- End News Display Template -->

And this is how the classes are set in the stylesheet
Code: Select all
p.NewsSummaryPostdate
{
text-align:left;
color:RGB(0,32,0);
width:100%;
font-size:9pt;
font-family:Arial, sans-serif;
font-weight:bold;
}
p.NewsSummarySummary
{
text-align:left;
color:RGB(0,32,0);
width:100%;
font-family:Arial, sans-serif;
font-weight:normal;
text-decoration:none;
margin-bottom:5px;
}
p.NewsSummaryMorelink
{
margin-top:-5px;
margin-right:0;
margin-bottom:20px;
margin-left:0p
font-weight:bold;
}
a.NewsSummaryLink
{
display:block;
text-align:center;
padding-top:5px;
background-color:RGB(0,64,0);
color:RGB(200,255,200);
font-family:Arial, sans-serif;
text-decoration:none;
}

BTW: Yes, I'm using {stylesheet} within the templates header section. The stylesheet works fine with the rest of the template.
Regards from Germany
Michael