Jump to content


Photo
- - - - -

Hover colour not working in IE

hover dropdown css

Best Answer Danny , 03 March 2013 - 07:43 AM

Hi,

 

The reason the hover color is working in FireFox and not IE, is that your code is only for FIreFox. This line:

 

 

    background-image: -moz-linear-gradient(center top , #E6E6E6, #E6E6E6);
 
The -moz- stands for Mozilla, which I am sure you know is the company name for the creators of FireFox. For assistance in correcting your code for all browsers, see this website.
 
http://www.colorzill...radient-editor/
Go to the full post


This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1 barryevans

barryevans

    Advanced Member

  • Members
  • 30 posts

Posted 02 March 2013 - 06:09 PM

Hi,

 

I am using the attached custom CSS script, however for some reason it works in Firefox but not IE.

 

/*Nav bar hover colour*/
.dropdown-menu li > a:hover, .dropdown-menu li > a:focus, .dropdown-submenu:hover > a, .dropdown-menu li.current-menu-item > a {
    background-color: #E6E6E6;
    background-image: -moz-linear-gradient(center top , #E6E6E6, #E6E6E6);
    background-repeat: repeat-x;
    color: #333333;
    text-decoration: none;
}

 

Please could you help me undestand why IE is not picking up the correct drop down hover colour of #E6E6E6

 

My site is

Please Login or Register to see this Hidden Content

 

Thanks in advance



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 19206 posts

Posted 03 March 2013 - 07:43 AM   Best Answer

Hi,

 

The reason the hover color is working in FireFox and not IE, is that your code is only for FIreFox. This line:

 

 

    background-image: -moz-linear-gradient(center top , #E6E6E6, #E6E6E6);
 
The -moz- stands for Mozilla, which I am sure you know is the company name for the creators of FireFox. For assistance in correcting your code for all browsers, see this website.
 

Please Login or Register to see this Hidden Content



#3 barryevans

barryevans

    Advanced Member

  • Members
  • 30 posts

Posted 03 March 2013 - 10:14 AM

Thats a pretty cool site, TVM



#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 19206 posts

Posted 03 March 2013 - 12:11 PM

No problem.