...

View Full Version : css in a <a> tag hover??????



andrew1234
11-28-2002, 08:35 AM
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

meerkat
11-28-2002, 10:29 AM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum