Wenn ich anstadt
diesen code
body
{
background-image: url("http://habbox.com/text/72/DRIVDER");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
}
diesen nehme
body {
background: url(http://habbox.com/text/72/DRIVDER);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
}
wird der background nicht mehr angezeigt
Alles anzeigen
Mach mal bitte ne style.css füg dann den unteren code ein und spiel halt mit ('gdfssdgf') oder ("sagsgf") rum
Achja jetzt nochmal zu dem eigentlichen Problem du kannst nicht 2 body tags benutzen dein "Logo" sag ich jetzt mal musst du in nen container setzen
richtig wäre dann:
#logo {
background-image: url(http://habbox.com/text/72/DRIVDER);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
}
body {
background: url("http://www.habbox.com/images/calvin/…ec_bg_viilu.gif");
background-repeat: repeat-xy;
background-attachment: fixed;
}
HIER KOMPLETT AUFGEPEPT:
<!DOCTYPE html>
<html>
<style>
body {
background: url(http://www.habbox.com/images/calvin/…ec_bg_viilu.gif);
background-repeat: repeat-xy;
background-attachment: fixed;
}
#logo {
background-image: url(http://habbox.com/text/72/DRIVDER);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
}
</style>
<div id="logo"></div>
</html>