| Author |
Message |
drums
Toilet Drinker


Joined: 19 Jun 2003 Posts: 184
Location: Portland, OR
|
Posted:
Fri Sep 14, 2007 3:37 pm Post subject: CSS question |
|
a:link {color:#3E6790; text-decoration:none}
a:visited {color:#3E6790; text-decoration:none}
a:active {color:#3E6790; text-decoration:none}
a:hover {background-color: #E0E6ED; color:#000000; text-decoration:none}
This works except I want the hover text to be black. Can someone explain why it takes the other color 3E6790 and not black? |
_________________
|
|
|
|
|
Slymer
Tail-Wagger


Joined: 29 May 2003 Age: 30 Posts: 2025
Location: chair in front of my computer
|
Posted:
Fri Sep 14, 2007 4:09 pm Post subject: |
|
I'm not ever used CSS... but wouldn't active be the hover color?... of course you can always change around the colors to see which exactly is the correct one to play with. |
_________________ The Sly One
======================================
Windows is like crack. It feels good, it's easy to start into, it hooks you bad, it costs a ton of money, and it makes you crazy. And you still love it. - EdisonRex
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Albert Einstein
|
|
|
|
|
CMTG
Leg Humper


Joined: 23 Feb 2002 Posts: 4875
Location: On average, Cheltenham.
|
Posted:
Sat Sep 15, 2007 1:49 am Post subject: |
|
You just got the order wrong it should be :link, :visited, :hover, :active.
Remember, CSS is applied in the order it is defined! |
_________________ Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.
"Have I seen you at the gym? I don't go to the gym, I'm just naturally like this..."
- Captain Hammer
|
|
|
|
|
|
|