|
|
|
tomoslewis
regular
Reg'd: Wed
Posts: 94
|
|
Is it possible to use CSS to make links in different areas different color / size?
I thin there is a way, but just can't find it.
Please donate towards the Tsunami Relief Campagin
|
|
predator
regular
Reg'd: Sun
Posts: 541
|
|
Yes you can.
In your style sheet, you can define the styles like this...
a.topmenu:link {color: rgb(0,0,0); text-decoration: none} a.topmenu:visited {color: rgb(0,0,0); text-decoration: none} a.topmenu:hover {text-decoration: underline} a.sidemenu:link {color: rgb(255,0,0); text-decoration: none} a.sidemenu:visited {color: rgb(255,0,0); text-decoration: none} a.sidemenu:hover {text-decoration: underline}
This example defines two separate link styles - topmenu and sidemenu, but you can use as many as you want with whatever names you want.
To select a style, add class="stopmenu" etc to the hyperlink e.g.
<a class="topmenu" href="index.htm">Home</a>
http://www.predatorconservation.com
|
|
|