Ravasz
08-09-2009, 08:29 PM
One of my websites has a very simple layout and very simple style sheet:
<style type="text/css">
<!--
a.menu:link {text-decoration:none; color:#ff0000}
a.menu:visited {text-decoration:none; color:#ff0000}
a.menu:active {text-decoration:none; color:#ff0000}
a.menu:hover {text-decoration:none; color:#ffffff; background-color:#ff0000; cursor:crosshair}
a.jap:link {text-decoration:none; color:#6600cc}
a.jap:visited {text-decoration:none; color:#6600cc}
a.jap:active {text-decoration:none; color:#6600cc}
a.jap:hover {text-decoration:none; color:#ffffff; background-color:#6600cc; cursor:crosshair}
a.ro:link {text-decoration:none; color:#0000ff}
a.ro:visited {text-decoration:none; color:#0000ff}
a.ro:active {text-decoration:none; color:#0000ff}
a.ro:hover {text-decoration:none; color:#ffffff; background-color:#0000ff; cursor:crosshair}
a.trans:link {text-decoration:none; color:#ff0066}
a.trans:visited {text-decoration:none; color:#ff0066}
a.trans:active {text-decoration:none; color:#ff0066}
a.trans:hover {text-decoration:none; color:#ffffff; background-color:#ff0066; cursor:crosshair}
BODY
{ background: #ffffff;
scrollbar-face-color:#ffffff;
scrollbar-shadow-color:#000000;
scrollbar-highlight-color:#000000;
scrollbar-3dlight-color:#ffffff;
scrollbar-darkshadow-color:#ffffff;
scrollbar-track-color:#ffffff;
scrollbar-arrow-color:#000000;
}
</style>
I'm not concerned with the scrollbar - I know that only works in IE (right?). But why would those simple link classes not work in Firefox? I thought changing the text color was pretty standard and worked in all browsers.
If you want to see the page in action:
http://www.dreamwatersprings.com/animelody
If you click into a section where there's a list of lyrics, you'll see they're all plain blue underlined links in Firefox (I'm using the newest FF), but they're non-underlined and multi-colored in IE, like they should be.
<style type="text/css">
<!--
a.menu:link {text-decoration:none; color:#ff0000}
a.menu:visited {text-decoration:none; color:#ff0000}
a.menu:active {text-decoration:none; color:#ff0000}
a.menu:hover {text-decoration:none; color:#ffffff; background-color:#ff0000; cursor:crosshair}
a.jap:link {text-decoration:none; color:#6600cc}
a.jap:visited {text-decoration:none; color:#6600cc}
a.jap:active {text-decoration:none; color:#6600cc}
a.jap:hover {text-decoration:none; color:#ffffff; background-color:#6600cc; cursor:crosshair}
a.ro:link {text-decoration:none; color:#0000ff}
a.ro:visited {text-decoration:none; color:#0000ff}
a.ro:active {text-decoration:none; color:#0000ff}
a.ro:hover {text-decoration:none; color:#ffffff; background-color:#0000ff; cursor:crosshair}
a.trans:link {text-decoration:none; color:#ff0066}
a.trans:visited {text-decoration:none; color:#ff0066}
a.trans:active {text-decoration:none; color:#ff0066}
a.trans:hover {text-decoration:none; color:#ffffff; background-color:#ff0066; cursor:crosshair}
BODY
{ background: #ffffff;
scrollbar-face-color:#ffffff;
scrollbar-shadow-color:#000000;
scrollbar-highlight-color:#000000;
scrollbar-3dlight-color:#ffffff;
scrollbar-darkshadow-color:#ffffff;
scrollbar-track-color:#ffffff;
scrollbar-arrow-color:#000000;
}
</style>
I'm not concerned with the scrollbar - I know that only works in IE (right?). But why would those simple link classes not work in Firefox? I thought changing the text color was pretty standard and worked in all browsers.
If you want to see the page in action:
http://www.dreamwatersprings.com/animelody
If you click into a section where there's a list of lyrics, you'll see they're all plain blue underlined links in Firefox (I'm using the newest FF), but they're non-underlined and multi-colored in IE, like they should be.