...

View Full Version : Change the colour of the hyperlink text.



effpeetee
05-25-2007, 02:49 PM
I need to change the colour of the hyperlink text on one page only.
Will some kind coder please enlighten me.

Thank you.

effpeetee

Pennimus
05-25-2007, 02:54 PM
Give those links a unique class and define the colours for it in your CSS in the same way as you would normally. The higher specificity will override your usual link colours.

effpeetee
05-25-2007, 03:05 PM
Give those links a unique class and define the colours for it in your CSS in the same way as you would normally. The higher specificity will override your usual link colours.
Could you be a bit more specific please.

I'm still wearing "L" plates where CSS is concerned.

Ta muchly,

effpeetee

ahallicks
05-25-2007, 03:18 PM
<a href="blah.html" class="newlink">Link</a>

Then in your CSS:


a.newlink {
color: whatever;
background-color: inherit;
}

a.newlink:hover {
color: whatever;
background-color: inherit;
}


Something like that

effpeetee
05-25-2007, 03:50 PM
Spot on Friend.

Worked a treat.

effpeetee



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum