CSS link colors only work for hover

Discussion in 'HTML & Website Design' started by dubs89, Jan 14, 2009.

  1. #1
    dubs89, Jan 14, 2009 IP
  2. jonhel

    jonhel Peon

    Messages:
    26
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't understand the problem.

    Your CSS for links has them all remaining white with no decoration other than the hover and this is what they are doing in IE 7.0. Haven't tried any other browsers.

    What's the problem with the page?
     
    jonhel, Jan 14, 2009 IP
  3. dubs89

    dubs89 Peon

    Messages:
    231
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have the links blue with a ugly underline I want them to be light grey all the time with no underline and red with no underline when you hover.....
     
    dubs89, Jan 14, 2009 IP
  4. gobbly2100

    gobbly2100 Banned

    Messages:
    906
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    
    
    a:link, a:visited {
        color:#ccc;
        text-decoration: none;
    }
    
    
    a:hover {
        color: red;
        text-decoration: none;
    }
    
    
    Code (markup):
    There you go!
     
    gobbly2100, Jan 14, 2009 IP
  5. gnp

    gnp Peon

    Messages:
    137
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You are missing the ; in all a: styles (a:link, a:visited, a:active) , between the words none and color.. except for the a:hover and that is why it is the only one working ...

    take care
     
    gnp, Jan 14, 2009 IP
  6. dubs89

    dubs89 Peon

    Messages:
    231
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    haha THANKS what a dumb mistake lol
     
    dubs89, Jan 14, 2009 IP