.center { position: absolute; top:0; right:0; bottom:0; left:0; margin: auto; background-color:#966; left:expression(this.parentNode.clientWidth/2 - this.clientWidth/2 + " px"); top:expression(this.parentNode.clientHeight/2 - this.clientHeight/2 + " px"); width: 500px; height: 400px; } |