CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 6th, 2004, 03:27 PM
Nixon Nixon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 106 Nixon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 20 m 4 sec
Reputation Power: 6
Question CSS a:link function - simple (hopefully!!!)

Hey all,

I have a problem. On my website I want the links in the navbar to go bold when you roll over them. However I want to keep the links on the page normal and have a different style for them? I am currently using a:link, a:hover etc.....

Any ideas would be appreciated!!! Thanks. Jack.

Reply With Quote
  #2  
Old April 6th, 2004, 03:35 PM
Nunzio390's Avatar
Nunzio390 Nunzio390 is offline
Insignificant Peon
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Tharsis Ridge (Martian lowlands)
Posts: 194 Nunzio390 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 38 m 55 sec
Reputation Power: 6
Just define 2 styles in your css.

Example for main content links:

a:link { text-decoration: none; font-weight: normal; color: #xxxxxx; background-color: transparent }
a:visited { text-decoration: none; font-weight: normal; color: #xxxxxx; background-color: transparent }
a:active { text-decoration: none; font-weight: normal; color: #xxxxxx; background-color: transparent }
a:hover { text-decoration: underline; font-weight: normal; color: #xxxxxx; background-color: transparent }

Example for navbar links:

a.navlink:link { text-decoration: none; font-weight: normal; color: #xxxxxx; background-color: transparent }
a.navlink:visited { text-decoration: none; font-weight: normal; color: #xxxxxx; background-color: transparent }
a.navlink:active { text-decoration: none; font-weight: normal; color: #xxxxxx; background-color: transparent }
a.navlink:hover { text-decoration: none; font-weight: bold; color: #xxxxxx; background-color: transparent }

Then, simply define the links in the navbar like so...

<a href="blah-blah" class="navlink">Navigation link #1</a>

Last edited by Nunzio390 : April 6th, 2004 at 03:47 PM.

Reply With Quote
  #3  
Old April 6th, 2004, 04:01 PM
Nixon Nixon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 106 Nixon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 20 m 4 sec
Reputation Power: 6
Thank you, very much appreciated, more a PHP programmer than CSS (as you probably realised!!!).

Anyways Thanks a ton.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS a:link function - simple (hopefully!!!)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT