Return to Snippet

Revision: 16262
at July 30, 2009 08:41 by coreypurcell


Initial Code
.center {
  position: absolute;
  top:0; bottom:0;
  margin: auto 0;
  top:expression(this.parentNode.clientHeight/2 - this.clientHeight/2 + " px");
  height: 60%;
}

Initial URL
http://valums.com/vertical/

Initial Description
works in IE6/IE7 with the css expression.

Initial Title
Vertical Centering with CSS

Initial Tags
design

Initial Language
CSS