Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
<style type="text/css">
body {
background-color: #00CCFF;
padding: 0px;
margin: 0px;
}
#container {
background-color: #00CCFF;
width: 800px;
}
#header {
background-color: #0066FF;
background-image: url(http://board.pcmasters.at/rama3.jpg);
width: 800px;
height: 150px;
border: 1px solid black;
margin-bottom: 5px;
}
#content {
background-color: #0066FF;
width: 640px;
border: 1px solid black;
margin-bottom: 5px;
margin-left: 5px;
position: absolute;
left: 153px;
top: 157px;
}
#box {
background-color: #0066FF;
width: 150px;
border: 1px solid black;
margin-bottom: 5px;
margin-right: 5px;
}
</style>
</head>
<body>
<div id="container">
<div id="header"></div>
<div id="box">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
<div id="box">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
<div id="content">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
</div>
</body>
</html>
#container {
background-color: #00CCFF;
width: 800px;
margin: 0 auto;
position: relative;
}
#footer {
background-color: 0066FF;
width: 640px;
margin-top: 5px;
}
Okay, hab das Modell mal etwas überarbeitetalex130 hat gesagt.:[...]
Edit: Ich hab schon wieder eine Frage, ich hab einen Footer gemacht (Code hab ich angehängt) und will dass der so breit wie der Content Bereich ist und genau unter dem Content Bereich ist.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
<style type="text/css">
body {
background-color: #00CCFF;
padding: 0px;
margin: 0px;
}
#container {
background-color: #00CCFF;
width: 800px;
margin: 0 auto;
}
#header {
background-color: #0066FF;
background-image: url(http://board.pcmasters.at/rama3.jpg);
width: 800px;
height: 150px;
border: 1px solid black;
margin-bottom: 5px;
}
.leftCol { /* linke Spalte */
width: 150px;
float: left;
}
.rightCol { /* rechte Spalte */
width: 640px;
float: right;
}
#content {
background-color: #0066FF;
width: 640px;
border: 1px solid black;
margin-bottom: 5px;
}
.box {
background-color: #0066FF;
width: 150px;
border: 1px solid black;
margin-bottom: 5px;
}
#footer {
background-color: #0066FF;
width: 640px;
margin-top: 5px;
border: 1px solid black;
}
</style>
</head>
<body>
<div id="container">
<div id="header"></div>
<div class="leftCol">
<div class="box">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
<div class="box">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
</div>
<div class="rightCol">
<div id="content">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
<div id="footer">footer</div>
</div>
</div>
</body>
</html>
<div class="box">...</box>