spacer
Web Development Tutorials CSS Tutorials
 Developer Newsletter

Tutorials
AJAX
ASP
CGI & Perl
CSS
Flash
HTML
Illustrator
Java
JavaScript
Linux
MySQL
PHP
Photoshop
Python
Wireless
XML
Miscellaneous


Scripts Directory
AJAX Scripts
ASP Scripts
ASP.NET Scripts
CGI & Perl Scripts
Flash Scripts
Java Scripts
JavaScript Scripts
PHP Scripts
Python Scripts
Remotely Hosted Scripts
Tools & Utilities Scripts
XML Scripts

Web Hosting Directory
ASP.NET
Budget
Dedicated Servers
Ecommerce
Linux
Resellers
Shared
Small Business
Windows

Developer Manuals
Learn HTML
Learn PHP
Learn CSS
Learn AJAX
Learn JavaScript
Learn Pear
Free White Papers

Developer Resources
Developer Tools
Developer Content
Survey Software
Dedicated Servers




Remove Underlines from Links

By Ades Tynyshev
2005-05-31


Remove Underlines from Links

<style type="text/css">
<!--
A:link {text-decoration: none}
-->
</style>

Put the above script between the <head> </head> tags in your page. It will remove all the underlines from your links in that particular page. To remove all underlines from your links throughout your website, better place it in your header file.

In addition to none, any of the following four constants can be put:

A:link {text-decoration: blink} <!-- Text blinks -->
A:link {text-decoration: line-through}
<!-- Each line of text has a line through the middle. -->
A:link {text-decoration: overline}
<!-- Each line of text has a line above it. -->
A:link {text-decoration: underline}
<!-- Each line of text is underlined. -->

Usually link, visited, active and hover are alltogether defined in one script as below:

<style type="text/css">
<!--
A:link {text-decoration: none}
<!-- Underlines are removed from links -->
A:visited {color: red }
<!-- Visited link will become red -->
A:active {color: #CCCCCC }
<!-- Active link will be light grey -->
A:hover {color: yellow }
<!-- When you point on links it will turn to yellow -->
-->
</style>

Change the colors that suits your website layout.



Tutorial Pages:
» Remove Underlines from Links


 | Bookmark Print |   Write For Us
Related Tutorials:
» Planning Your Stylesheet - The Definitive Guide
» CSS Shorthand Properties
» Print Stylesheet - The Definitive Guide
» Using CSS Selectors to Highlight Unedited Form Fields
» An Introduction to CSS
» Overlapping tabbed navigation in CSS



About the NetVisits, Inc Network | Write For Us | Advertise
Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy.
Visit other NetVisits, Inc. sites: