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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Links, their colors and browser compatibility

Status
Not open for further replies.

Als2002

Programmer
Jan 16, 2002
2
US
Hi, new here and am a HTML beginner level programmer. I am trying out experiments and although they seem simple, they dont work and r making me quite frustrated. Pls help me if u can, thanks.

I am trying to create a link with no underline with different colors for link(ffffff), active
(orange ff6666), visited (maroon 993333) on a reddish BG (cc6666) but i am having problems with the way it works.
code used:

<html>
<head>
<style type=&quot;text/css&quot;>
<!--
a:link {text-decoration:none;color:#ffffff}
a:visited {text-decoration:none;color:#993333}
a:active {text-decoration:none;color:#ff6666}
-->
</style>
</head>
<body bgcolor=&quot;#cc6666&quot; leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot;
marginheight=&quot;0&quot; text=&quot;#ffffff&quot;>
<a href=&quot;contact.htm&quot;>
<font face=&quot;arial&quot; size=&quot;1&quot;>Contact</font>
</a>
</body>
</html>

problem:
in NS 4.x: the link is white, briefly turns orange when u click on it, and remains orange as long as u r on that page (active), BUT does NOT become maroon after visited. when u bring up the page again, link remains white.
In IE 5.5: link is white first, briefly turns orange when u click on it, and remains orange as long as u r on that page (active), becomes maroon after visited. BUTwhen u bring up the page again, link remains MAROON and not white which is what i want.

I am quite sick of browser issues and i have just started out.
What can i do?

Thanks,
Als2002
 
First you say for visited you want it to be maroon. Even if you leave a page and come back if you clicked before this is still a visited link. To make it white again specify visited as white or clear your cache.

If you want them to more than flash when you click add a hover. a:hover DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
thanks, a:hover works only with IE not with NS.
what do i do if i want link ffffff, active&quot;&quot;, visited &quot;&quot;, and it all works the way it is supposed to in both browsers???
al
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top