Log in

View Full Version : Multiple id



locbtran
09-22-2011, 04:45 AM
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

Butterfly
09-22-2011, 05:02 AM
Your CSS is wrong. Try this:


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

djr33
09-22-2011, 05:35 AM
It would be easier to use a class for all of them and use IDs also if you need them.