someRookie: Div in Div vertikal positionieren

Beitrag lesen

@@De Koch:

#container

{
    height: 210px;
    overflow-y: auto;
}

#content
{
    display: table-cell;
    height: 210px;
    vertical-align: middle;
    width: 100%;
    padding-top: expression( [code lang=javascript](new Function('elem', '[code lang=javascript]elem.style.height = "auto"; elem.style.paddingTop = (210 - elem.offsetHeight) / 2 + "px";


> }[/code]  
>   
>   
> > Die andere wäre mit Javascript. Stichwort: Computed Style  
>   
> Ja, aber nur für Browser, die dies nötig haben, also für IE < 8. Und das JavaScript auch an Ort und Stelle im Stylesheet notiert – [CSS-Expression](http://bittersmann.de/articles/css-expressions/), s.o.).  
>   
> Qapla'  
  
table-cell wird aber nicht von älteren Browsern der IE reihe unterstüzt oder irre ich mich da jetzt ?  
diese variante kannte ich nämlich schon!  
  
das mit den expression im css ist allerdings auch frü mich neu