Ich habe hier ein Layout:
http://phpbase.ph.funpic.de/layout/Desing-Kopie.html
Wie bekomme ich das in die mitte`?
http://phpbase.ph.funpic.de/layout/Desing-Kopie.html
Wie bekomme ich das in die mitte`?
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
#header
{
background-image:url(images/header.gif);
background-repeat:no-repeat;
height:170px;
margin-left: 160px;
}
#mitte
{
padding-left:10px;
color:white;
background-image:url(images/mitte.gif);
background-repeat:repeat-y;
padding-right:10px;
height:634px;
margin-left; 160px;
}
body { text-align:center; }
#header { margin:0 auto; }
#mitte { margin:0 auto; }
Bitte was?Metzler schrieb:omg, ich glaub ich weiß woran das leigt. Das ist bereits zentriert, weil die Seite nicht soweit geht, wie der gesamte Bildschirm :roll: musst nur eine Tabelle reinmachen, die über das ganze Bild geht.
<html>
<head>
<title>Desing Kopie</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#header
{
background-image:url(images/header.gif);
background-repeat:no-repeat;
height:170px;
}
#mitte
{
padding-left:10px;
color:white;
background-image:url(images/mitte.gif);
background-repeat:repeat-y;
padding-right:10px;
height:634px;
}
incenter
{
text-align:center;
}
body
{
margin-top:0px;
margin-bottom:0px;
}
</style>
</head>
<body><table width="1000" height="0"><tr><td> </td></tr></table>
<center>
<div id="header"></div>
<div id="mitte">lol</div>
</center>
<noscript></noscript><script type="text/javascript" src="http://media.funpic.de/layer.php?bid=96488858"></script></body>
</html>
1.) Wenn du zu Faul bist es richtig zu lernen, ist dass noch lange kein Grund es Anderen falsch zu zeigen.Metzler schrieb:Ich benutz das aber nur, weil ich einfach zu faul bin, um mir CSS anzueignen. HTML reicht völlig, auch wenn das manchmal viel umständlicher ist.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="de">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Zentriertes Layout</title>
<style type="text/css">
body {
text-align:center;
}
#header {
width:500px;
height:4em;
margin:0 auto;
padding:10px 15px;
background-color:#004080;
color:#fff;
}
#content {
width:500px;
margin:0 auto;
padding:25px 15px;
background-color:#e0e0e0;
color:#000;
text-align:left;
}
</style>
</head>
<body>
<div id="header">Der Titelbereich</div>
<div id="content">
<h1>Der Inhaltsbereich</h1>
Da wo der Text später stehen soll.</p>
</div>
</body>
</html>
Und genau darum geht es.Metzler schrieb:Ich hab nur die Tabelle sop reingefügt, wie ich meinte, dass das richtig ist.