In this tutorial, we are gonna turn off the underline of a link and show it only on mouse hover. The browser shows the underline on a text link by default. First, we need to turn it off by styling it. First, just add text-decoration: none; To show it on mouse hover, add a:hover. Then inside the double curly brackets, add text-decoration: underline;
Home
Unlabelled
Show underlines only on mouse hover by using CSS in HTML
Show underlines only on mouse hover by using CSS in HTML
Written by:
Sir Chogyal
-
Subscribe to:
Post Comments
(
Atom
)
No comments
Post a Comment
If you have any doubt, please let me know.