Webpage Hintergrundgröße?

und wie wandle ich das um? Sorry ich bin da ein vollkommener Anfänger und unser Lehrer bringt uns da auch nicht grad viel bei ._.
 
Deinen Lehrer danach zu fragen ist dir nicht möglich?

Und den Quellcode meiner jetzt mehrfach empfohlenen Seite kannst du auch nicht lesen und studieren?

HTML:
<body>

<!-- Dieses Grafik-Element ersetzt das Hintergrundbild -->
<img id="background" src="deine-hintergrundgrafik.jpg" alt="" title="" /> 

</body>


Und dann im Ganzen:

HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title> stu nicholls | CSS PLaY | 100% wide/high 'background' image emulation </title>

<style type="text/css">
html, body {margin:0; padding:0; width:100%; height:100%; overflow:hidden;}
body {font-family:verdana, arial, sans-serif; font-size:76%;}
#background{position:absolute; z-index:1; width:100%; height:100%;}
#scroller {position:absolute; width:100%; height:100%; top:0; left:0; overflow:auto; z-index:2;} 
#content {padding:5px 300px 20px 200px;}
p {line-height:1.8em; letter-spacing:0.1em; text-align:justify;}
#fixed {position:absolute; top:25px; left:10px; width:150px; z-index:10; color:#567; border:1px solid #000; padding:10px;}
</style>
</head>

<body>

<div>
<img id="background" src="rabbit.jpg" alt="" title="" /> 
</div>
<div id="fixed">
<p>The background image is always 100% x 100% (body size). But it only works with a 100% x 100% html/body.</p>
<p><a href="http://www.cssplay.co.uk/comments/comments.php?comment_id=100% background image" title="Your comments">Comments</a></p>
<a href="http://web.top.org/css/" title="CSS (Design) - TOP.ORG"><img style="border:none;" src="http://img1.top.org/toporg_1667.gif" alt="CSS (Design) - TOP.ORG" /></a>

</div>
<div id="scroller">
<div id="content">

<h1>Hier folgt der Inhalt</h1>

</div>
</div>

</body>
</html>


mfg Maik
 
Zurück