Axel Schneider: Problem mit CSS - Wo liegt der Fehler?

Beitrag lesen

hi

ich habe ein problem:

ich habe ein CSS, dass lt validator io ist, aber warum wird der active link nicht mit der entsprechenden frabe angezeigt? (geht in IE und FF nicht)

<div class="menu2">
<table summary="" cellpadding="1" cellspacing="1" class="menu2">
<tr>
<td><a href="impress.shtml" onfocus="this.blur()"> Impressum</a></td>
</tr>
<tr>
<td><a href="index.shtml" onfocus="this.blur()"> Home</a></td>
</tr>
</table>
</div>

das dazugehörige css:

table.menu2 a {
width:235px;
border:1px solid #333333;
display: block;
}

div.menu2 a {
color: #eba754;
background: #ffffff;
text-decoration:none;
font-size:11px;
line-height:16px;
font-weight : bold;
font-family: Tahoma, verdana, sans-serif;
padding: 2px 5px;
}

div.menu2 a:link {
color: #eba754;
background: #330099;
}

div.menu2 a:active {
color: #ffffff;
background: #123754;
}

div.menu2 a:visited {
color: #eba754;
background: #330099;
}

div.menu2 a:hover {
color: #330099;
background: #eba754;
border:1px solid #000000;
}