LuvShining
Erfahrenes Mitglied
Die Frage wurde im Web schon zu tausend diskutiert, aber ich bin noch immer nicht so richtig dahinter gekommen.
#container {
position:absolute;
height:482px;
width:741px;
top:50%;
left:50%;
margin-top:-241px;
margin-left:-370px;
z-index:2;}
<div id="container">INHALT</div>
Warum ist in der Horizontalen alles mittig, die Vertikale jedoch unberücksichtigt? Ich wollte alles, und das immer, mittig gesetzt haben.
Kann mir hierbei jemand einen Tipp geben?
Über Rückmeldung würde ich mich freuen.
Viele Grüße
Nadine
#container {
position:absolute;
height:482px;
width:741px;
top:50%;
left:50%;
margin-top:-241px;
margin-left:-370px;
z-index:2;}
<div id="container">INHALT</div>
Warum ist in der Horizontalen alles mittig, die Vertikale jedoch unberücksichtigt? Ich wollte alles, und das immer, mittig gesetzt haben.
Kann mir hierbei jemand einen Tipp geben?
Über Rückmeldung würde ich mich freuen.
Viele Grüße
Nadine