View Full Version : Removing underline from an anchor?
jewellim
12-01-2006, 06:37 PM
I always see that underline effect whenever i create a text with link using anchor. Is there any way to remove it or other code or tag i can use instead? Thks.
thetestingsite
12-01-2006, 06:57 PM
you can use CSS to get rid of that line. A sample code would be like this:
<style type="text/css">
a:link {text-decoration: none;} //the original link with no underline
a:visited {text-decoration: none;} //the visited link with no underline
a:hover {text-decoration: underline;} //mouseover link and an underline appears
</style>
a brief explination:
a:link is the plain link,
a:visited is a visited link
a:hover is a link when the mouse moves over it
text-decoration is the marking or effect for the link
you can find more details about CSS on this website as well as looking around google for it.
chechu
12-01-2006, 07:43 PM
Just place the above code in the <head> of every page, or add it to your stylesheet, and you'll have what you need.
mwinter
12-01-2006, 09:26 PM
I always see that underline effect whenever i create a text with link using anchor. Is there any way to remove it or other code or tag i can use instead?
It can be removed using CSS, however it should not when the anchor is amongst text; colour alone should not be used to indicate a hyperlink.
Mike
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.