Simple CSS Help please

WarriorH

New Member
Messages
55
Reaction score
0
Points
0
Hi, this problem may be really stupid, but I am having trouble.

I want to cancel all link effects for a certain class. Like, I want to have the text act the same as it would if it were not a link. Could some one help me?
 
Last edited:

crisp

New Member
Messages
85
Reaction score
0
Points
0
Assuming you've assigned a class (yourclass in example) already
add to your style sheet
Code:
a.yourclass {
  font-weight: normal;
  text-decoration: none;
  color: #000000; // use whatever colour your regular text is here
}

and if you want to not show any style when hovering/clicking the link too

add to your style sheet
Code:
a.yourclass:visited, a.yourclass:hover {
  font-weight: normal;
  text-decoration: none;
  color: #000000; // use whatever colour your regular text is here
}

or combine them in one decalration

Code:
a.yourclass, a.yourclass:visited, a.yourclass:hover {
  font-weight: normal;
  text-decoration: none;
  color: #000000; // use whatever colour your regular text is here
}
 
Last edited:
Top