Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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!!!!

  • #2
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    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

  • #3
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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...

  • #4
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    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

  • Users who have thanked rangana for this post:

    KerMT (03-07-2010)

  • #5
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •