Hallo!
Ich möchte in meinem Script bei hover z.B. über "1.2 Zeile"
die ganze Zeile farbig makiert haben aber momentan ist nur Feld "1.2 Zeile" farbig makiert.
Ich möchte aber den ganze tr Tag farbig makiert haben und zwar die folgenden Texte:
1.1 Zeile , 1.2 Zeile und 1.3 Zeile
Weiß einer ob das geht? Oder wie es funktionieren könnte?
Mein Code:
----------
<style type="text/css">
#zeile a
{
display: block;
color: #FFFFFF;
background-color: #036EEE;
width: 9em;
padding: 3px 12px 3px 8px;
text-decoration: none;
border-bottom: 1px solid #fffEEE;
font-weight: bold;
}
#zeile a:hover
{
background-color: #369EEE;
color: #FFFFFF;
}
#zeile a
{
display: block;
color: #FFFFFF;
background-color: #69CEEE;
width: 9em;
padding: 3px 3px 3px 17px;
text-decoration: none;
font-weight: normal;
}
</style>
<table>
<tr id="zeile">
<td><a href="#">1.1 Zeile</a></td>
<td><a href="#">1.2 Zeile</a></td>
<td><a href="#">1.3 Zeile</a></td>
</tr>
<tr id="zeile">
<td><a href="#">2.1 Zeile</a></td>
<td><a href="#">2.2 Zeile</a></td>
<td><a href="#">2.3 Zeile</a></td>
</tr>
<tr id="zeile">
<td><a href="#">3.1 Zeile</a></td>
<td><a href="#">3.2 Zeile</a></td>
<td><a href="#">3.3 Zeile</a></td>
</tr>
</table>