Changing formatting of a link

Asked

Viewed 433 times

2

personal. I would like to know how to apply an underscore on a link as soon as a person positions his mouse over a text with a.

I removed the underlined link with text-decoration: none and would like to apply underline only when someone positioned the mouse over link.

Thank you!

1 answer

4


With the a:hover (when the mouse goes over).

See an example running the code below:

/*  CSS */

a{
  text-decoration: none;
  }

a:hover{
  text-decoration: underline;
  }
<!-- HTML -->    


<a href="">Link teste</a>

  • Thank you very much =)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.