CSS selectors and pseudo-classes

Say for example I have the following styles:

#HorizNav ul li a.active:link { background-color: #FFF; }
#HorizNav ul li a.active:visited { background-color: #FFF; }
#HorizNav ul li a.active:active { background-color: #FFF; }
#HorizNav ul li a.active:hover { background-color: #FFF; }

If all the styles are the same, then how would I group these styles together?

Would it be like this?

#HorizNav ul li a.active:link, a.active:visited, a.active:active, a.active:hover { }



#HorizNav ul li a.active { background-color: #FFF; }

Need Your Help

Yocto Install and Use Toaster

linux yocto bitbake openembedded

I'm successfully using Yocto to build an embedded system targeting a TI EVM platform. I can bitbake my image using command line or the Hob GUI interface.

sails.js use different layout with different js libraries

node.js gruntjs sails.js

I'm creating my first nodejs/sails.js project, I want to use 3 different layout for 3 different occasions: