View Full Version : style question
Krap22
07-25-2002, 08:16 PM
I am trying to change the style of just one of my links on the page and i had a brain fart and can't remember what the command is to change the hover state for a <a>
<a href=" " style="font-hover???????">
what is the syntax for changeing the hover state????
Roy Sinclair
07-25-2002, 09:00 PM
<style>
a:hover {font-family: ... }
</style>
applesauce
07-25-2002, 10:17 PM
you could create different classes in your style sheet, like
a.one:link {color: #ff0000}
a.one:visited {color: #0000ff}
a.one:hover {color: #ffcc00}
a.two:link {color: #ff0000}
a.two:visited {color: #0000ff}
a.two:hover {font-size: 150%}
(http://www.w3schools.com/css/tryit.asp?filename=trycss_link2)
and then on your page in your url:
<p><b><a class="one" href="default.asp" target="_blank">This link changes color</a></b></p>
<p><b><a class="two" href="default.asp" target="_blank">This link changes font-size</a></b></p>
:)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.