Pseudo class (anchor) mouseover style
I want the links only in a div called "header" to change the background and text colour on mouseover.
This is my coding in my CSS:
Code:
#header a:link {color: #e76931; text-decoration: none;} /* unvisited link */
#header a:visited {color: black;} /* visited link */
#header a:hover {color: white;
background-color:#e76931; text-decoration: underline;} /* mouse over link */
#header a:active {color: #e76931; text-decoration: underline;}
h1 { font-family: Tahoma, Verdana, sans-serif;
color: #e76931 ;
font-weight:heavy;
font-size: 12px;
padding:5px 0px 0px 0px;
text-align:right;
line-height:14px;
margin:0px;}
And in HTML,
HTML Code:
<a id="header" href="page.htm" alt="Link to page.htm"><h1>SOME TEXT</h1></a>
But in FF when I hover the mouse, nothing happens.
In IE, the link goes orange (#e76931 ) but you can't see the white text.
I'm sure I'm missing something really obvious, but I haven't done this sort of thing for ages.
Do I have to JScript it?
Thanx stax as always.
WIWAG :o