Reply
CSS Link Help
Old 04-07-2008, 11:55 AM [SOLVED] CSS Link Help
midwestkel's Avatar
Novice Talker

Posts: 9
Name: Kelly Karnetsky
Location: Dayton, OH & Colorado Springs, CO
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!
 
When You Register, These Ads Go Away!
Old 04-07-2008, 12:38 PM Re: CSS Link Help
LadynRed's Avatar
Super Moderator

Posts: 6,562
Location: Tennessee
#footer a.twocol:hover{blah blah blah;} should work
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-07-2008, 12:52 PM Re: CSS Link Help
serandfae's Avatar
Bank holdup redefined....

Posts: 4,724
Name: Tim Daily
Location: Apex, NC, US, Sol 3
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
__________________
Springs hop eternal in the hearts of the eccentric....
E-GADS! (Evil Genius' Art and Design Studio) http://bellsouthpwp2.net/j/a/jam331

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: 9
Name: Kelly Karnetsky
Location: Dayton, OH & Colorado Springs, CO
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: 9
Name: Kelly Karnetsky
Location: Dayton, OH & Colorado Springs, CO
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
Super Moderator

Posts: 6,562
Location: Tennessee
Sounds like a specificity issue, but at least you got it working
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS Link Help
 

Thread Tools

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