Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

design-is

macrumors 65816
Original poster
Oct 17, 2007
1,219
1
London / U.K.
When you group the pseudo-classes (a:link, a:visitied...) does active still need to come below hover?

Or could you do for example:

Code:
a:link, a:visited, a:active {
	stuff
}

a:hover {
	stuff
}


I've used it like this before - is there any reason I shouldn't?

Cheers,

/Doug
 
I've read from time-to-time about the ordering, but I generally don't think about it when I code it up. I've never seen any negative effects from ordering them differently.
 
I've seen some issues when they are not in the correct order before. Typically it seems like an IE 6 problem. It's been a while, but I remember in the day when we used a lot of tables we'd often have a hard time getting the colors to work properly on a, or a:link if it wasn't correct.
 
I've seen some issues when they are not in the correct order before. Typically it seems like an IE 6 problem. It's been a while, but I remember in the day when we used a lot of tables we'd often have a hard time getting the colors to work properly on a, or a:link if it wasn't correct.

Hmm, yeh, actually I think I remember something similar. Nowadays I don't come across any problems, but I guess that's just because I avoid them in other ways. Don't really tend to use active states, so probably why I haven't noticed them breaking.

Will endeavour to order correctly in future.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.