Amin: Div immer mittig ausrichten

Beitrag lesen

Da wir den Aufbau deines Dokuments nicht kennen, wissen wir auch nicht, was das position bewirkt, bzw. beweirken soll.

Der Aufbau ist ziemlich ist momentan ziemlich klein gehalten:

  
#head {  
background-image: url(Bilder/yun_2172.jpg);  
margin:0 auto;  
position:relative;  
width:800px;  
height:148px;  
top:50px;  
}  
#content {  
border-left:1px solid #000000;  
border-right:1px solid #000000;  
border-bottom:1px solid #000000;  
margin:0 auto;  
display:block;  
overflow:auto;  
position:absolute;  
top:225px;  
bottom:100px;  
width:800px;  
}  
  

  
<div id="head">asdf</div>  
<div id="content">a<br />  
a<br />  
a<br />  
a<br />  
a<br />  
a<br />  
a<br />  
a<br />  
a<br />  
a<br />  
a<br />  
a  
</div>  
  
  
Dass wars schon!Jetzt soll der content Bereich quasi unter dem Head Bereich uns sich genauso verhalten.