Folgen Sie dem Video unten, um zu sehen, wie Sie unsere Website als Icon auf Ihrem Homescreen erstellen.
Anmerkung: This feature may not be available in some browsers.
body {
text-align:center;
}
#container {
width: 750px;
}
<body>
<div id="container">
dein inhalt
</div>
</body>
cashmere schrieb:eine möglichkeit wäre, den inhalt des bodys mit css zu zentrieren:
Code:body { text-align:center; }
dann braucht man allerdings noch einen container für den content:
Code:#container { width: 750px; }
im quellcode sieht das dann so aus:
Code:<body> <div id="container"> dein inhalt </div> </body>
macmell schrieb:Muß ich das jetzt alles im code eingeben? Kannst du mir das ein bisschen genauer erklären, bin leider noch ein blutiger Anfänger...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Beispiel</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<style type="text/css">
<!--
body {
text-align:center;
}
#container{
color:#000000;
background:#CCCCCC;
width:760;
text-align:left;
}
-->
</style>
</head>
<body>
<div id="container">
<p> Lorem ipsum dolor sit amet</p>
</div>
</body>
</html>