Quote:
Originally Posted by ataxia1
EXTERNAL CSS FILE:
Code:
a:link {text-decoration: none; color: #223F7A;}
a:visited {text-decoration: none; color: #223F7A;}
a:hover {text-decoration: underline; color: #223F7A;}
HTML FILE:
HTML Code:
<head>
<style type="text/css">
.MyClass {lots of cell formatting CSS here}
a.MyClass:hover {text-decoration: none;}
</style>
</head>
<body>
<td class="MyClass">
<a href="">No underline on hover here</a>
</td>
<td class="AnotherClass">
<a href="">DO underline this link on hover</a>
</td>
</body>
|
You are referencing the class wrong. In the HTML, you are applying the class to the table cell, and in the CSS you are referencing it as though you had applied the class to the anchor tag.
Change your CSS as follows:
HTML Code:
<style type="text/css">
.MyClass {lots of cell formatting CSS here}
.MyClass a:hover {text-decoration: none;}
</style>
That should resolve the issue.