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
Old 04-07-2008, 11:55 AM [SOLVED] CSS Link Help
midwestkel's Avatar
Novice Talker

Posts: 12
Name: Kelly Karnetsky
Location: Dayton, OH & Colorado Springs, CO
Trades: 0
I have never used both class and id for css links, I am trying to now and it is not working. Can you let me know how it should look? Thanks.

Code:
a.twocol:link #footer, a.twocol:visited #footer {
color: #FFFFFF; text-decoration: underline;
font-size: 10px;
}
a.twocol:hover #footer {
color: #CCCCCC; text-decoration: none;
font-size: 10px;
}
__________________
Kelly Karnetsky

Last edited by midwestkel; 04-07-2008 at 02:22 PM.. Reason: solved
midwestkel is offline
Reply With Quote
View Public Profile Visit midwestkel's homepage!
 
 
Register now for full access!
Old 04-07-2008, 12:38 PM Re: CSS Link Help
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
#footer a.twocol:hover{blah blah blah;} should work
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-07-2008, 12:52 PM Re: CSS Link Help
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
A link to the page would help. First off, CSS rules go in order of specificity; that is, say, from an outer named div to one nested further in. Also, style rules for a go in order, link, visited, hover, active (LoVeHAte is the mnemonic). Sorry to say, but that CSS is a mess. What you need is something like:

Code:
.twocol a:link{
color: #fff;
text-decoration: underline;
font-size: 10px;
}
/*insert rule for visited*/
.twocol a:hover{
color: #ccc;
text-decoration: none;
font-size: 10px;
}
You shouldn't need to define it more than that, but if the footer ID is the parent, then it would read #footer.twocol a: link, and so on.



Edit: LnR, should I revise this in any way?

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Last edited by serandfae; 04-07-2008 at 12:55 PM..
serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 04-07-2008, 12:53 PM Re: CSS Link Help
midwestkel's Avatar
Novice Talker

Posts: 12
Name: Kelly Karnetsky
Location: Dayton, OH & Colorado Springs, CO
Trades: 0
I tried that and it didnt work for me. I am using a CSS layout if that makes a difference.
__________________
Kelly Karnetsky
midwestkel is offline
Reply With Quote
View Public Profile Visit midwestkel's homepage!
 
Old 04-07-2008, 02:21 PM Re: CSS Link Help
midwestkel's Avatar
Novice Talker

Posts: 12
Name: Kelly Karnetsky
Location: Dayton, OH & Colorado Springs, CO
Trades: 0
Ok what I did was took out the class and that did it. Thanks!

#footer a:hover{blah blah blah;}
__________________
Kelly Karnetsky
midwestkel is offline
Reply With Quote
View Public Profile Visit midwestkel's homepage!
 
Old 04-07-2008, 02:35 PM Re: CSS Link Help
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Sounds like a specificity issue, but at least you got it working
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS Link Help
 

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.96762 seconds with 12 queries