Hallo Leute
ich bin gerade am "erlernen" von css und nun hab ich schon die erste Frage.
Ich hab bei einem DIV-Tag ein Hintergrundbild eingefügt. Dies klappt auch wunderbar. Jedoch wenn ich den Befehl :"background-attachment: fixed;" einfüge, verschiebt sich die Position des Hintergrundbildes auf den Nullpunkt des Bildschirms...warum orientiert es sich nicht an der DIV-Position???
Gruss staehla
Code:
/*Formatierung der mittleren Box (Inhalt)*/
div.inhalt {
width: 580px;
height: 430px;
border:;
overflow:auto;
margin-left:5px;
margin-right:5px;
position:absolute;
top: 172px;
left: 230px;
background-image:url(images/hintergrund.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
}