Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-07-2010, 02:38 AM   PM User | #1
KerMT
New to the CF scene

 
Join Date: Mar 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
KerMT is an unknown quantity at this point
Unhappy a:link not working! help!

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!!!!
KerMT is offline   Reply With Quote
Old 03-07-2010, 03:32 AM   PM User | #2
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
Looks identical to me. Did you try clearing your cookies? or it could be that I missed it. What erroneous behavior are you observing?
__________________
Learn how to javascript at 02geek

The more you learn, the more you'll realize there's much more to learn
Ray.ph
rangana is offline   Reply With Quote
Old 03-07-2010, 03:42 AM   PM User | #3
KerMT
New to the CF scene

 
Join Date: Mar 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
KerMT is an unknown quantity at this point
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...
KerMT is offline   Reply With Quote
Old 03-07-2010, 03:44 AM   PM User | #4
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
Have you tried adding highlighted:
Code:
a:link, a {color: #0D0;text-decoration: none}
__________________
Learn how to javascript at 02geek

The more you learn, the more you'll realize there's much more to learn
Ray.ph
rangana is offline   Reply With Quote
Users who have thanked rangana for this post:
KerMT (03-07-2010)
Old 03-07-2010, 03:57 AM   PM User | #5
KerMT
New to the CF scene

 
Join Date: Mar 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
KerMT is an unknown quantity at this point
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.
KerMT is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:30 AM.


Advertisement
Log in to turn off these ads.