IE8 anchor tag background-color - this one is hurting my brain

Discussion in 'CSS' started by jonnyewing, Mar 10, 2011.

  1. #1
    These links look exactly how I want them to look in Firefox (v3.5 installed on this machine) but not in IE8 (see below).

    Can anyone tell me if this is a known bug?

    In IE, everything works except the background-color attribute for a:hover.

    If it is set to #ffffff (aka #fff) it does not work.

    If I change it to #fefefe (or any other colour, so far as I can tell), it works.

    Am I barking mad?


    MARKUP:
    
    	<div class="section footerlinks">
    	<a href="blog.cfm">Blog</a><br />
    	<a href="contact.cfm">Contact</a><br />
    	</div>
    
    HTML:
    CSS
    
    .footerlinks {
    line-height:30px;
    }
    .footerlinks a:link, .footerlinks a:visited
    {
    	color: #ffffff; 
    	text-decoration:none;
    	padding:5px 5px 5px 5px;
    }
    .footerlinks a:active, .footerlinks a:hover
    {
    	color: #583684;
    	background-color:#fff;
    	text-decoration:none;
    	padding:5px 5px 5px 5px;
    }
    
    HTML:

     
    jonnyewing, Mar 10, 2011 IP
  2. AHEINC

    AHEINC Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Works fine for me in IE...
     
    AHEINC, Mar 10, 2011 IP
  3. jonnyewing

    jonnyewing Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    Thanks AHEINC - not for me, though. What version of IE? I have 8.0.7600.16385 and 8.0.6001.19019 here and it doesn't work in either of them.
     
    jonnyewing, Mar 11, 2011 IP