[Solved] Styling the NewsSummaryMoreLink

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
nakkiel
Forum Members
Forum Members
Posts: 70
Joined: Wed Apr 02, 2008 7:15 am

[Solved] Styling the NewsSummaryMoreLink

Post by nakkiel »

How can I style the NewsSummaryMoreLink? I have tried to style the "Module: News" css and various other things, for instance:

Code: Select all

<div align="right" class="NewsSummaryMorelink">
 {$entry->morelink class="morelink"}
</div>

...

<div align="right" class="NewsSummaryMorelink">
 <p class="morelink">{$entry->morelink}</p>
</div>

...And so on :)
Last edited by nakkiel on Thu Apr 17, 2008 8:41 am, edited 1 time in total.
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Styling the NewsSummaryMoreLink

Post by KO »

You have CSS stylesheet attached to your page template. Add your styles over there...

div.NewsSummaryMorelink {text-align:right;background-color:pink;}
p.morelink {background:purple;}

... and so on :)
User avatar
nakkiel
Forum Members
Forum Members
Posts: 70
Joined: Wed Apr 02, 2008 7:15 am

Re: Styling the NewsSummaryMoreLink

Post by nakkiel »

Yeah, I know. That's where I have been inserting my css, when I have tried that 'class="morelink"' thingy :)

The problem is that in "Module: News" css-file, .NewsSummaryMorelink is a div, not the link itself. You see, I need to style the link like:

Code: Select all

.NewsSummaryMorelink:link {
   text-decoration: none;
}
...And so on. But thanks for the fast reply :)
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Styling the NewsSummaryMoreLink

Post by KO »

Ok. Links are tags so...

.NewsSummaryMorelink a {
  text-decoration: none;
color:pink;
}

;)
User avatar
nakkiel
Forum Members
Forum Members
Posts: 70
Joined: Wed Apr 02, 2008 7:15 am

Re: Styling the NewsSummaryMoreLink

Post by nakkiel »

That does it! Thanks :)
Post Reply

Return to “Layout and Design (CSS & HTML)”