How do I remove the underlines from links with CSS

How do I remove the underlines from links with CSS

Q: How do I remove the underlines from links while working with HTML files? A: This can be done with a CSS declaration of text-decoration: none. Place this code (with your color choices) above the closing

</head>

 tag in your HTML document. This code demonstrates the removal of the underline on hover. Remember, hover is maintained by I.E. only.

<style type=”text/css”> <!– a:link { color: #CC00CC} a:visited { color: #CCCCCC} a:hover { color: #0000CC; text-decoration: none} a:active { color: #CC3333} –> </style>

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.