Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
different A:LINK classes?
Old 03-01-2006, 05:27 PM different A:LINK classes?
Guerrilla's Avatar
Ultra Talker

Posts: 424
Trades: -1
Hi There,

Its been a long day and this problem hurting my tired brain so if anyone can help with this i'd really appreciate it.

I set the links formats on a page using the folowing:

A:link { color: red }
A:active { color: blue }
A:visited { color: green}

but on some parts of the page these link colours dont fit in. Can i assign these values to a class or and ID so i can set up multiple combinations of links colours and then apply the class/id to each part of text that suits it best.

I hope i explained that coherantly, if you need clarification please ask.

Thanks!
Guerrilla is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-01-2006, 07:57 PM Re: different A:LINK classes?
Super Talker

Posts: 102
Trades: 0
sure you can

try this:

a.classname:link, a.classname:visited, a.classname:hover and give them their colors. Like for example

a.green:link {
color: green;
}
a.green:hover {
color: someothercolor;
}

Last edited by ghettobert; 03-01-2006 at 08:02 PM..
ghettobert is offline
Reply With Quote
View Public Profile
 
Old 03-01-2006, 08:52 PM Re: different A:LINK classes?
Guerrilla's Avatar
Ultra Talker

Posts: 424
Trades: -1
Thanks! I'll try that
Guerrilla is offline
Reply With Quote
View Public Profile
 
Old 03-01-2006, 09:27 PM Re: different A:LINK classes?
Super Talker

Posts: 102
Trades: 0
by the way it works just as well for an id, like so;

a#idname:link, a#idname:visited, a#idname:hover and give them their colors. Like for example

a#green:link {
color: green;
}
a#green:hover {
color: someothercolor;
}

ofcourse don't forget to give the anchor the appropriate class or id
ghettobert is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to different A:LINK classes?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12973 seconds with 12 queries