View Full Version : help on highlighting link
hybrid03
11-09-2002, 12:27 AM
I need to know what the code is whenever you put the
mouseover a link it would highlight. Can someone post the code
Thanks in advance! :)
cg9com
11-09-2002, 04:06 AM
you mean highlight like an actuall highlighter?
try this for that effect, if its not what you want just say so.
<style type="text/css">
.highlighter {background-color:yellow;}
</style>
<a href="webpage.html" onmouseover="this.className='highlighter';"
onmouseout="this.className='';">blah</a>
Bosko
11-09-2002, 02:11 PM
This code is much better,as it works in all browsers:
<style type="text/css>
a:hover{background-color:yellow}
</style>
degsy
11-09-2002, 04:39 PM
Yes, use CSS Pseudo Classes
a:link {
color: #009999;
text-decoration: underline;
background-color: #FFFFFF;
}
a:visited {
color: #009999;
text-decoration: underline;
background-color: #FFFFFF;
}
a:hover {
color: #00CC99;
text-decoration: none;
background-color: #FFFFFF;
}
a:active {
color: #00CC99;
text-decoration: underline overline;
background-color: #FFFFFF;
}
You can put this in <style> tags or in a seperate CSS file.
http://www.w3schools.com/css/css_pseudo_classes.asp
cg9com
11-09-2002, 07:16 PM
Originally posted by Bosko
This code is much better,as it works in all browsers:
<style type="text/css>
a:hover{background-color:yellow}
</style>
i guess i just figured that he\she knew that already
my mistake :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.