www.webdeveloper.com
Results 1 to 6 of 6

Thread: Link / Hover links not working as should

  1. #1
    Join Date
    Oct 2007
    Posts
    76

    Link / Hover links not working as should

    Am i completely missing something here? I want the link to be Red and when you rollover/hover it goes Black. Then once clicked i want the link to remain Red but instead it goes black.

    Code:
    a img {
            border: none;
            text-decoration;
    }
    
    a {
            outline: none;
    }
    
    a:link {
            text-decoration: none;
            outline: none;
            color: #990000;
    }
    
    a:hover {
            text-decoration: none;
            color: #000000;
    }
    
    a:visited {
            text-decoration: none;
    }
    I can attached the entire CSS file if there might be something in there that's causes a conflict.

    Appreciate any help - its got me stumped

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Requires JavaScript.
    Give an example of the html used.

  3. #3
    Join Date
    Apr 2006
    Posts
    493
    this is what you need
    Code:
    a img {
            border: none;
            text-decoration;
    }
    
    a {
            outline: none;
    }
    
    a:link {
            text-decoration: none;
            outline: none;
            color: #990000;
    }
    
    a:hover {
            text-decoration: none;
            color: #000000;
    }
    
    a:visited {
            text-decoration: none; color: #990000;
    }

  4. #4
    Join Date
    Oct 2007
    Posts
    76
    That's the thing - i've tried that and it still doesn't revert the hover color to Black. I keeps the visited link Red.

  5. #5
    Join Date
    Apr 2006
    Posts
    493
    works for me on safari and firefox on a mac

  6. #6
    Join Date
    Oct 2007
    Posts
    76
    No no, i know you're right as i've used this man times. I'm using Joomla for the back-end so it maybe something in there that's conflicting.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles