Morgen an alle,
ich möchte gern mehrere DIV´s mit einmal durch ein Hover die Background-Color ändern.
Jedoch klappt das nur wenn die betroffenen DIV´s noch keine Background-Color zuvor gesetzt bekommen haben.
Ich möchte aber eine Background-Color setzen und diese bei einem Mouse Over ändern! ABER alle mit einmal sprich ich will das er die ganze Klasse ändert.
HTML_Datei:
CSS Datei:
Danke vorab schon mal für eure Mühe
ich möchte gern mehrere DIV´s mit einmal durch ein Hover die Background-Color ändern.
Jedoch klappt das nur wenn die betroffenen DIV´s noch keine Background-Color zuvor gesetzt bekommen haben.
Ich möchte aber eine Background-Color setzen und diese bei einem Mouse Over ändern! ABER alle mit einmal sprich ich will das er die ganze Klasse ändert.
HTML_Datei:
HTML-Code:
<html> <head> <link rel="stylesheet" type="text/css" href="test.css"> </head> <body> <div id="FB14" class="FB14"> <div id="FB14_Name" class="FB14"> <h3>FB14</h3> </div> <div id="FB14_Anz-Sig" class="FB14"></div> <div id="FB14_Prod_Status" class="FB14">Status Prod</div> </div> </body> </html>
CSS Datei:
HTML-Code:
div.FB14:hover{ background-color:red; } div.FB14{ width:110px; background-color: #85cfe8; } #FB14 { left:1188px; height:100px; } #FB14_Name { height:50px; width:110px; position:absolute; text-align: center; /* display: table; width: 100%; */ } #FB14_Anz-Sig { margin-top:50px; height:50px; width:55px; float:left; } #FB14_Prod_Status { margin-top:50px; height:50px; width:55px; float:right; }
Kommentar