Hallo!
Ich habe jetzt noch ein bisschen rumprobiert und bin auf eine Lösung gekommen. Zumindest in meiner Standalone-Version des 6er IEs klappt es.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test</title>
<style type="text/css">
~~~~~~css
li {
width: 200px;
}
a {
background-color: blue;
display:block;
width: 200px;
}
a:hover {
background-color: yellow;
display:block;
width: 200px; /* Ohne die Breitenangabe klappt es komischerweise nicht */
}
~~~~~~html
</style>
</head>
<body>
<ul>
<li>
<a href="#">
Text
</a>
</li>
</ul>
</body>
</html>
ciao, ww
--
Schäuble:
"Wir können alles. Außer Rechtsstaat."
Schäuble:
"Wir können alles. Außer Rechtsstaat."