Hi wie oben beschrieben möchte ich gerne ein div container mit einer zugewiesenen größe und farbe als einen hover erscheinen lassen.
Nur die Farbe soll sich verändern. Leider funktioniert das nicht so ganz wie ich es mir gedacht habe. Daher bräuchte ich ein wenig hilfe.
habe schon diverses probiert nur nichts hat geklappt. Das "design"funktioniert , so wie ich es haben wollte.
vorab bin erst seit kurzem dabei
hmm sieht nen bissle komisch aus, obwohl es normal eingefügt wurde.
Hat jemand einen Tipp um den code richtig darzustellen?
HTML
<!DOCTYPE html><html><head> <title>versuch2</title> <link href ="design.css" type="text/css" rel="stylesheet"/></head><body> <div id="seite"> <div id="ueberschrift"> <h1>Test Whats Going On</h1> </div> <div id="schrift1"> <ul> <li id="ueschrift1"> picture </li> <li id="ueschrift2"> suchen </li> <li id="ueschrift3"> example </li> </ul> </div> <div class="line1"> <div id="box1"> </div> <div id="box2"> </div> <div id="box3"> </div> </div> <div class="line2"> <div id="box4"> </div> <div id="box5"> </div> <div id="box6"> </div> </div> <div id="schrift1"> <ul> <li id="ueschrift1"> picture </li> <li id="ueschrift2"> suchen </li> <li id="ueschrift3"> example </li> </ul> </div> </div></body></html>
CSS
body{
background-image:url(background.jpg); background-repeat:no-repeat; background-size:106%; margin:0; padding:0;
}
#seite{ /*background-color:yellow;*/ width:900px; height:800px; margin: 0 auto; }
#ueberschrift h1{ padding:0; margin-top:100px; text-align:center; font-size:3em; color:lightgrey;
}
/*lineone*/
.line1{padding:0;margin-top:0;height:230px;width:900px;/*background-color:green;*/clear:both;
}
#box1{height:230px;width:250px;background-color:red;float:left;margin-left:25px;}
#box2{height:230px;width:250px;background-color:green;margin-left:50px;float:left;
}
#box3{
height:230px;width:250px;background-color:purple;margin-left:50px;float:left;
}
/*linetwo*/
.line2{margin-top:60px;height:230px;width:900px;/*background-color:green;*/margin-top:50px;
}
#box4{height:230px;width:250px;background-color:orange;float:left;margin-left:25px;}
#box5{height:230px;width:250px;
background-color:grey;margin-left:50px;float:left;
}
#box6{
height:230px;width:250px;background-color:pink;margin-left:50px;float:left;
}
/*headlines over picture*/
#schrift1 ul{ list-style:none; padding:0; margin:0; font-size:30px; color:lightgrey;}
#ueschrift1 { float:left; margin-left:100px;}
#ueschrift2 {
margin-left:220px; float:left; }
#ueschrift3 {
margin-left:220px; float:left; }
Alles anzeigen