y h Posted June 5, 2014 Share Posted June 5, 2014 Hi, I wanted two a:focus each one with a specific color. If I added a-footer for ex. I can't use href with it anymore so how to manage two a:focus with href a:hover,a:focus {color: #e87352;font-weight:bold;text-decoration: none;}a:active{background-color: transparent;}a-footer{color: #3bbec0;}a-footer:hover,a-footer:focus {color: #000;font-weight:bold;text-decoration: none;}a-footer:active{background-color: transparent;} If I used a-footer to have different colors then a I can't anymore use href ex : "< a-footer href...>"Does anyone have an idea how can I do it??? Link to comment Share on other sites More sharing options...
dsonesuk Posted June 5, 2014 Share Posted June 5, 2014 you cant create your own tag names you have to use a class, or id ref for example <a class="a-footer">link 01</a> .a-footer{color: #3bbec0;}.a-footer:hover,.a-footer:focus {color: #000;font-weight:bold;text-decoration: none;}.a-footer:active{background-color: transparent;} the '.' represents a class, '#' represents a id ref You should have read about these here http://www.w3schools.com/css/css_selectors.asp 1 Link to comment Share on other sites More sharing options...
y h Posted June 5, 2014 Author Share Posted June 5, 2014 Ok thank you for your quick reply:) 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