AndréZ: Ebenen mit CSS positionieren

Beitrag lesen

#topmiddleframe
{
 position:absolute;
 height:145px;
 background-color : White;
 margin-left:250px;
 margin-right:250px;
 margin-top:2px;
}

Diese Ebene wird jetzt gar nicht mehr angezeigt!!!

#topmiddleframe
{
position:absolute;
height:145px;
background-color : White;
margin-left:auto;
margin-right:auto;
margin-top:2px;
}

Margin-auto orientiert sich am Box-Modell und berechnet sich aus der gesamten Breite des angezeigten Bereiches abzgl. <div>-Breite.

LG