Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

links don't use styles in Safari

Status
Not open for further replies.

famtek

Instructor
Mar 27, 2007
67
US
I am using the following code is a css page

A:link {color:"#d6d7b1"; text-decoration:"none";}
A:visited {color:"#d6d7b1"; text-decoration:"none";}
A:hover {color:"#ffffff"; text-decoration:"underline";}

This works fine in IE but does not work in Firefox or using Safari on a Mac.

Can someone please explain what's going on and how to utilize this effect.

thanks.
 
Yes, attribute values in CSS must not be surrounded with quotes. IE apparently does not care much, but others do. Remove the quotes and you'll be fine.
 
If you use the free validator service at W3C, then you can solve all kinds of these problems. This will then ensure your code works with ALL standards compliant browsers (Safari, IE7, Firefox, Opera, Netscape etc).


Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top