Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How get rid underline on hyperlink for FireFox 2

Status
Not open for further replies.

sazebac

Technical User
Apr 16, 2003
117
0
0
US
My site, trinatek.com, looks fine with IE. However when I look at it with Mozilla Firefox, the hyperlinks on services.htm are underlined and don't know how to get rid of them. The table data already has <span style="text-decoration: none"> in it.
Also, any idea how to get rid of the spaces between the bottom 3 pictures on services.htm? Thanks.
 
Use this in your style declaration either in a separate style sheet or in the head of your document
Code:
<html><head><title>test links</title>
<style>a{}

a:link {text-decoration:none; }

a:visited {text-decoration:none; }

a:active { text-decoration:none; }

a:hover{text-decoration: none;}
/* use this to asign different styles to links*/
a.test{}
a:link.test {text-decoration:underline; }

a:visited.test  {text-decoration:underline; }

a:active.test  { text-decoration:underline; }

a:hover.test {text-decoration: underline;}
</style>
</head>
<body>
<a class = "test" href = "test.html"> underlined link</a>
<a  href = "test.html">  nonunderlined link</a>
</body></html>

Glen
 
Don't know if you made any changes yet, though the links show without underlines in Mozilla 1.8b. I have noticed several bugs in Mozilla 1.7.5/Firefox 1.0 that have been corrected in Mozilla 1.8b - this could be the culprit?
 
I've since fixed it by adding a <style> decalration. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top