Hello,
I am facing a bit of a problem overriding global styles for <A> object inherited from a css style sheet. I have defined this style in the style sheet as follows:
A { TEXT-DECORATION: none; COLOR: black }
A:hover { TEXT-DECORATION: underline }
It works nicely throughout the page, but for one particular hyperlink on the page I do not want the underline when a mouse hovers over it. How can I override the style just for that one <A> tag?
Thanks in advance for any thoughts...<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>hover</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
#foo:hover {text-decoration: none;}
-->
</style>
</head>
<body>
<a id="foo" href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.mysite.com">mysite</a>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.mysite.com">mysite</a>
</body>
</html>Thanks !!!
I am facing a bit of a problem overriding global styles for <A> object inherited from a css style sheet. I have defined this style in the style sheet as follows:
A { TEXT-DECORATION: none; COLOR: black }
A:hover { TEXT-DECORATION: underline }
It works nicely throughout the page, but for one particular hyperlink on the page I do not want the underline when a mouse hovers over it. How can I override the style just for that one <A> tag?
Thanks in advance for any thoughts...<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>hover</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
#foo:hover {text-decoration: none;}
-->
</style>
</head>
<body>
<a id="foo" href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.mysite.com">mysite</a>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.mysite.com">mysite</a>
</body>
</html>Thanks !!!