...

View Full Version : a:link not working! help!



KerMT
03-07-2010, 03:38 AM
I'm having trouble getting a:link to work. The strange thing is I uploaded the exact same HTML page to another website I host and own, and the a:link works fine on that website.

My a:hover is working fine, but with a:link I'm still getting the underline under my links and the color is the default link color...

I'm pulling out my hair trying to figure out what I'm doing wrong.
I'm using dreamweaver. Usually when i'm having trouble getting something to work I create a sort of "test" page, which just helps me see exactly what I'm doing by getting rid of the code that's working fine. Usually this helps me figure things out, but it's been about two hours and I'm still at square one.

the link is: http://keretweiss.com/testslideshowpage/hovertest.html
and the link to the one that's working is: http://studiosilhouettes.com/hovertest.html

the codes are identical.

here's the exact code (css and html):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>

<style type="text/css">

a:link {
color: #0D0;
text-decoration: none;

}
a:hover {
color:#C0F;
text-decoration:none;
}
.test {
text-decoration:none;
color: #9C0;

</style>
</head>

<body class="test">
<a href="test5.html">hihihihi</a>
</body>
</html>

Thanks so much for any help!!!!

rangana
03-07-2010, 04:32 AM
Looks identical to me. Did you try clearing your cookies? or it could be that I missed it. What erroneous behavior are you observing?

KerMT
03-07-2010, 04:42 AM
Yeah, I tried clearing my cookies.
The problem I'm experiencing is that the link is underlines and it's that default link color (like a deep eggplant or whatever that is) until you hover over it and then it's pink.
The hovering part is fine, it's the way the link appears upon page load that isn't right. There should be no underline and it should be green...

I'm using a mac and it doesn't work at all on firefox but if I restart my safari it'll work until I click on the link, and then if I revisit the page it won't work anymore....

Let me know if I'm not being clear, I'm still a beginner and I'm not sure I know the "proper" lingo...

rangana
03-07-2010, 04:44 AM
Have you tried adding highlighted:


a:link, a {color: #0D0;text-decoration: none}

KerMT
03-07-2010, 04:57 AM
I just realized my stupid, stupid mistake. Since I've already clicked on the link and I don't have an a:visited compound on my CSS it's showing up as a default visited link. All I had to do was add an a:visited compound and an a:visited:hover and now I'm all set.
Thanks so much for your help! I can't believe it was that simple.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum