Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-22-2011, 05:36 AM   PM User | #1
hiyatran
New Coder

 
Join Date: Jun 2010
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
hiyatran is an unknown quantity at this point
CSS Multiple id

I would like to have multiple id and all using hover link for all

#test1, #test2, #test3, #test4 a:hover{
color:#0F0;
}

this doesn't work. NOT sure why??
thanks
__________________
Daily Hot Deal
hiyatran is offline   Reply With Quote
Old 09-22-2011, 07:39 AM   PM User | #2
Asher01
New Coder

 
Join Date: Jul 2011
Location: Australia
Posts: 47
Thanks: 1
Thanked 3 Times in 3 Posts
Asher01 is an unknown quantity at this point
Quote:
Originally Posted by hiyatran View Post
#test1, #test2, #test3, #test4 a:hover{
color:#0F0;
}
Try putting a comma after #test4

So it will look like this:

Code:
#test1, #test2, #test3, #test4, a:hover{ 
color:#0F0;
}

_______
Edit

Oh, sorry, I read wrong and misunderstood the question :-S ... I'd remove my post but I believe it's against the rules?
__________________
“Opinion is the medium between knowledge and ignorance.”
“The old believe everything; the middle aged suspect everything: the young know everything.”

Last edited by Asher01; 09-22-2011 at 07:46 AM..
Asher01 is offline   Reply With Quote
Old 09-22-2011, 07:40 AM   PM User | #3
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,579
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Code:
#test1 a:hover, #test2 a:hover, #test3 a:hover, #test4 a:hover{
color:#0F0;
}
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:17 AM.


Advertisement
Log in to turn off these ads.