This on’e got me stumped…
I’m trying to set hover & link colours for 3 different page elements.
The first is the default. Links in the default should be whatever colour the default text is set to.
For that, I use this…
a:link { text-decoration: none; background-color: transparent;}
a:visited {text-decoration: none; background-color: transparent;}
a:hover {text-decoration: none; color: #E0218A; background-color: transparent;}
a:active {text-decoration: none; color: #E0218A; background-color: transparent; }
h1 {font-family:sans-serif; font-size:24pt; font-weight:bold; font-style:normal; text-decoration:none; text-align: left; margin-left: 0px; margin-right: 0px; margin-top: 0px; margin-bottom: 6px; line-height:110%; color:#000000;}
In the example, <h1> is set with a color:#000000. It should display as #000000, except when the cursor hovers, when it should change to color:#E0218A. Instead, it displays as the browser default link color:#0000FF. (The hover displays correectly.)
Then I have an element called “bar”. It’s colour and hover properties are set like this…
a.bar:link {font-family:sans-serif; font-style:normal; text-decoration:none; font-weight:bold; color:#ffffff; background-color:transparent;}
a.bar:visited {font-family:sans-serif; font-style:normal; text-decoration:none; font-weight:bold; color:#ffffff; background-color:transparent;}
a.bar:hover {font-family:sans-serif; font-style:normal; text-decoration:none; font-weight:bold; color:#ffcc33; background-color:transparent;}
a.bar:active {font-family:sans-serif; font-style:normal; text-decoration:none; font-weight:bold; color:#ffffff; background-color:transparent;}
*.bar {font-family: ‘Century Gothic’, ‘Trebuchet MS’; font-size: 8pt; margin-top:0px; color: white;}
It works exactly as per spec.
Finally, I have an element called “mitm”, which I set as follows;
a.mitm:link {font-style:normal; text-decoration:none; font-weight:normal; color:#ff9900; background-color:transparent;}
a.mitm:visited {font-style:normal; text-decoration:none; font-weight:normal; color:#ff9900; background-color:transparent;}
a.mitm:hover {font-style:normal; text-decoration:none; font-weight:normal; color:#ff9900; background-color:transparent;}
a.mitm:active {font-style:normal; text-decoration:none; font-weight:normal; color:#ff9900; background-color:transparent;}
*.mitm {font-family:’Century Gothic’, ‘Avant Garde’, sans serif; font-size:10pt; font-weight:normal; text-decoration:none; text-align: left; margin-left: 12px; margin-right: 0px; margin-top: 0px; margin-bottom: 0px; color:#ff9900;}
It doesn’t work at all. I get both the browser default link and hover colours.
Note that the browser defaults show in both IE and Firefox.
Anyone got any thoughts?