How to remove hover decoration from h1 text

Giganews Newsgroups
Subject: How to remove hover decoration from h1 text
Posted by:  Francesco Moi (francescom…@usa.com)
Date: 5 May 2007

Hi.

I want to create a link within a H1 text:
---
<h1><a href=foo>text</a></h1>
---

And I've got (in my CSS)
---
h1
{
    color: red;
    font-size: 130%;
}

h1:hover {text-decoration: none;}

a:hover
{
    text-decoration: underline;
    background-color: yellow;
}
-------

But it doesn't work, and it always shows yellow background and
underlined text when showing an H1 link.

any suggestion?

Replies