Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No underlines but choose colour in links

Status
Not open for further replies.

Sadruddin

Technical User
Nov 16, 2001
89
GB
Hi. Using DWMX and CSS, I need to create non-underlined links for part of a page, but default to the old underlined blue in other places.
I know I can do this by creating a new class, and making no underlines, but I need to have 2 different colours.

IE I need plain old blue/purple for email, and an external map link. Then on a nvigation bar I need non-underlined links in 2 different colours.
Hope this is clear. My problem is that I can turn off underlines, but they seem to then default to the trad colour scheme.

Help?

S
 
In your css just add:
a:link.nav1 { color: #FF0000; text-decoration: none; }
a:link.nav2 { color: #00FF00; text-decoration: none; }


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
OK. Thought it was that simple.
(css in main.css)

What I need is for the map and email link (top right) to look normal (blue underlined) but the links in the table on the left to not change their colours (currently blue, but should be pale green).

?
 
Looks like your class is in your <td> not your <a>. Have a look here for more details:

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top