tomoslewis
(regular)
Thu Jan 20 2005 07:39 PM
CSS and links.

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)
Thu Jan 20 2005 08:30 PM
Re: CSS and links.

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


Contact Us | Privacy statement Main website
Hitwise Top 10 Award Winner - Jan-Mar 2005

About us | Contact us | Link to us | Terms & Conditions | Privacy Policy
© Copyright IPC Media Limited, All rights reserved