Link to home
Start Free TrialLog in
Avatar of coreybryant
coreybryantFlag for United States of America

asked on

Apply Pseudo-Classes to a Div

I have a div called main and I cannot remember how to write the code to apply a pseudo-class for links to that "main" div
main.a:link {
	color:#000;
	background-color: #fff;
}
main.a:visited {
	color:#cc0000;
	background-color:#ffcc00;
}
main.a:hover {
	color:#ffff00;
	background-color:#cc0000;
}
main.a:focus{
	color:#cccccc;
	background-color: #666666;
}
main.a:active {
	color: #cc3300;
	background: #ffff99;
}

Open in new window

I know that is wrong but I have tried a few variations with no luck.

Thank you,
ASKER CERTIFIED SOLUTION
Avatar of SSupreme
SSupreme
Flag of Belarus image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of coreybryant

ASKER

Thanks, that was it