Results 1 to 3 of 3

Thread: CSS hover states don't work in IE

  1. #1
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS hover states don't work in IE

    Hi,
    I've designed this site to make an orange underline appear under the nav items on rollover. it works in Safari, FF (mac and pc), and even IE 5.2 on mac but nothing happens on the hover state on IE 6 on a pc.
    Advice??
    here's the site:
    http://www.sargentservices.com
    and the css i used

    #nav{
    padding-top: 64px;
    text-align: right;
    font: 14px Arial, Helvetica, Verdana, sans-serif;
    padding-right: 25px;
    }


    #nav a:link, a:visited{
    color: black;
    text-decoration: none;
    }

    thanks

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    IE this time is right. This part in your CSS is erroneous:
    Code:
    font: 14px Arial, Helvetica, Verdana, sans-serif;
    The CSS font shorthand rule needs no more than one font-family.

    You better change it to:
    Code:
    font-size:14px;
    font-family:Arial, Helvetica, Verdana, sans-serif;
    See if it helps.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default it works!!!!

    ohmygosh,
    THANK YOU THANK YOU THANK YOU!!!

Bookmarks

Posting Permissions

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