Sloth--__-- Posted June 11, 2019 Share Posted June 11, 2019 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 More sharing options...
Funce Posted June 11, 2019 Share Posted June 11, 2019 Well for one, # is an id selector, not a class selector. You'll need a '.classname' for that. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now