a:link doesn't work correctly in IE6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • just a feeling
    New Member
    • Aug 2007
    • 86

    a:link doesn't work correctly in IE6

    Hi,

    Though my problem seems simple, I didn't find the sol.

    a:link doesn't look as it should be in my browser (IE6) i.e the link is displayed in the text's default color (I guess it's purple) and size as if I didn't add a:link style which has it's own color and size ??

    This is my simple code

    Code:
    <!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 {
    	font-weight: bold;
    	color: #FF00CC;
    }
    a:hover {
    	color: #0066FF;
    	cursor: auto;
    }
    -->
    </style>
    </head>
    
    <body>
    <a href="http://www.google.com.sa/">Home
    </a>
    </body>
    </html>
    BTW, a:hover is working correctly. The problem is only within a:link

    Doc type: XHTML 1.0 Transitional
    platform: Windows
  • GluteHam
    New Member
    • Jul 2007
    • 40

    #2
    I think what's happening here is that, since you've already been to the link, what you now see is the visited state. Make sure you put in the visited state as part of the styles, and that should fix the problem.

    Put them in the LVHA order: link, visited, hover, active = Love Hate :-)

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      And clear your cache.

      Comment

      • just a feeling
        New Member
        • Aug 2007
        • 86

        #4
        > what you now see is the visited state.

        Yea, you are right. I didn't noticed that. Thank you very much.

        Also, thx drhowarddrfine for your help.
        Last edited by just a feeling; Aug 8 '07, 04:06 AM. Reason: leetspeak

        Comment

        Working...