Jump to content

a with href

Recommended Posts

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 post
Share on other sites

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



  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...