Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
tomoslewis
regular


Reg'd: Wed
Posts: 94
CSS and links.
      #152420 - Thu Jan 20 2005 07:39 PM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
predator
regular


Reg'd: Sun
Posts: 541
Re: CSS and links. [Re: tomoslewis]
      #152448 - Thu Jan 20 2005 08:30 PM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 26 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 157

Contact Us | Privacy statement Main website