Loic: Div container

Beitrag lesen

Hmm, habe das jetzt durch relative ersetzt und die Breite des Bodys auf 900 gesetzt.
Das ganze rückt aber immer noch nicht in die Mitte. Dieser Befehl im body mit margin: 0 auto scheint nicht zu funktionieren. Der hat überhaupt keinen einfluss.

  
<head>  
  <title></title>  
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />  
  <style type="text/css">  
  body { margin:0 auto; padding:0; width:900px; background-color:#e2e2e2; }  
  div { border:0px; }  
  #s1 { width:900px; height:180px; position:relative; top:50px; }  
  #s2 { width:180px; height:543px; position:relative; top:50px;  }  
  #s3 { width:720px; height:900px; position:relative; top:-493px; left:180px;}  
  </style>  
</head>