Support NATA 2014
Terminator
Terminator
  • Member since: Nov. 11, 2002
  • Offline.
Forum Stats
Member
Level 27
Programmer
Css/html Question Apr. 18th, 2008 @ 02:01 PM Reply

Hey everyone,

I don't know why this is causig me so much hassle but I just can't seem to recall the fix to it. My problem is essentially that the 'link style' keeps taking over my formatting. For example, I'm trying to use a green font color, but once the link is applied there is no escaping the standard 'link blue' color or the link color style set at the time.

So, refresh my memory; How do I set different links to have different font colors!?
Either I'm losing the plot or something is wrong, but I can't seem to change the colour once the link is applied. No matter which color or style I try to apply to the text, it sticks to the 'blue link' color or the generic color for all links. I'm looking to keep the formatting in tact and have text retain the color I'm after, even with a link attached.

Looking forward to getting that 'Damnit, of course..." feeling.


BBS Signature
DannyIsOnFire
DannyIsOnFire
  • Member since: Apr. 14, 2005
  • Offline.
Forum Stats
Member
Level 21
Movie Buff
Response to Css/html Question Apr. 18th, 2008 @ 02:05 PM Reply

a:link {color: #000000; text-decoration: underline; }
a:active {color: #0000ff; text-decoration: underline; }
a:visited {color: #008000; text-decoration: underline; }
a:hover {color: #ff0000; text-decoration: none; }

|| Portfolio || Facebook || Twitter ||

BBS Signature
yhar
yhar
  • Member since: Apr. 2, 2008
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to Css/html Question Apr. 18th, 2008 @ 02:05 PM Reply

body a{
body a:visted{
body a:hover{

?

Or for specific divs:
#div a{
#div a:visted{
#div a:hover{

Is that what you mean?


THIS IS CITRICSQUID POSTING