Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Posts
    147
    Thanks
    31
    Thanked 2 Times in 2 Posts

    css in a <a> tag hover??????

    hi i want to add :hover in the <a> tag


    how do i add the hover command to this below

    <a href="http://www.house.com" style="color: #3333CC; text-decoration:none; " >

    i tried style:hover="color:#000000;"

    but it did not work

    do you have any ideas

    thanks

    andrew

  • #2
    New Coder
    Join Date
    Jun 2002
    Location
    Glasgow, Scotland
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    andrew…

    Try this in the 'head' of the script
    <style="text/css">
    <!--

    a.nav:link {color: #3333cc; text-decoration: underline;
    }

    a.nav:hover {color: #000000; text-decoration: none;
    }

    a.nav:active {color: #000000; text-decoration: none;
    }

    a.nav:visited {color: #000000; text-decoration: none;
    }

    // -->


    And then in the body

    <a class="nav" href="http://www.house.com">

    That should do the trick

    meerkat
    Ya don't need a weatherman to know
    which way the wind blows...


  •  

    Posting Permissions

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