Question
I'm running Nat Skin on TWiki 4.0.4 and want to change some of the colours for links in the Clean Style.
I'm not really familiar with CSS so I may be doing something very silly.
I have edited the following in
CleanStyle.css:-
.twikiEmulatedLink,
a:active, a:link, a {
color:green;
text-decoration:none;
}
a:hover {
color:red;
text-decoration:underline;
}
These have only changed the colours for the links in the sidebar and in the heading. The links in the body of my TWiki pages have not changed colour. (both TWiki links and external links)
How do I get the links in the body to change colour and style? The body is displayed using the correct Nat Skin style so why isn't the corresponding CSS style sheet having any effect?
Environment
--
ChrisGreen - 16 Aug 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Try
.natMain a {color:green;}
.natMain a:hover {color:red}
I'd advice you not to alter the shipped css files but instead to create a new file
MyStyleVariation.css
and attach it to the
TWiki.NatSkin
topic. Then select clean+mystyle by adding
* Set SKINSTYLE = Clean
* Set STYLEVARIATION = MyStyle
to your preferences.
--
MichaelDaum - 16 Aug 2006
Yes, OK regarding adding
MyStyleVariation.css, to prevent overwriting by updates.
The ".natMain a:hover {color:red}" works, I get red links when I hover over them. However ".natMain a {color:green;}" isn't doing anything, the 'non hover' colour of the links stays determinedly grey/blue. The problem is that the colour of the links is only just a very little different from the rest of the text and you can't see them. I just want to tune the colour slightly to make the links more visible.
(I only went to 'green' and 'red' to make my changes obvious)
Thanks for the (yet again) quick reply.
--
ChrisGreen - 16 Aug 2006
It's OK, I found what it should be:-
.natMain a:link {color:green;}
Thanks again.
--
ChrisGreen - 16 Aug 2006