No under line for a hyper link

windows

Guest
Hi<br />
<br />
How can I remove under line for a hyper link. <br />
<br />
<br />
shara<!--content-->css<br />
<br />
style="text-decoration:none"<!--content-->Where do you place this function if you want there to be no links on any of the hypertext links within a page?<!--content--><style type="text/css"><br />
:link {text-decoration:none;}<br />
:active {text-decoration:none;}<br />
:visited {text-decoration:none;}<br />
:hover {text-decoration:none;}<br />
<style><br />
Place that in your head.<!--content-->Three things. <br />
<br />
1: If you are going to specify the same styles for all aspects of the link, wouldn't it be easier to use:<br />
<br />
<style type="text/css"><br />
a {<br />
text-decoration: none;<br />
}<br />
</style><br />
<br />
2: The correct order is link, visited, hover, active ( <!-- m --><a class="postlink" href="http://www.w3.org/TR/CSS2/selector.html#dynamic-pseudo-classes">http://www.w3.org/TR/CSS2/selector.html ... do-classes</a><!-- m --> )<br />
<br />
3: You made a typo on the closing </style> tag. You had <style><!--content-->oops about the typo. Also that code works just fine in opera ie and mozilla.<!--content-->Originally posted by PeOfEo <br />
Also that code works just fine in opera ie and mozilla. Only because you used the same declaration for all aspects. Try setting the :hover to text-decoration: underline; You also need to add a:hover (same for the rest -- :link, :active, :visited). Note the a before the psuedo-class.<!--content-->Ill correct it later I bookmarked the w3 page you gave me.<!--content-->It is working fine!!! Thank u all.<br />
shara<!--content-->
 
Back
Top