Jump to content

Defining and using a class for <a> elements


Sloth--__--

Recommended Posts

i need to change the background color and other stuff of  some <a> elements but not every single <a>, so i defined a class for the elements that i need to change but I don't know how to use the class name to define a:active or  a:hover  if i use #classname:hover it doesn't work. Can you tell me how to do it?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...