Return to Snippet

Revision: 16261
at July 30, 2009 08:37 by coreypurcell


Initial Code
.center {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  margin: auto;

  left:expression(this.parentNode.clientWidth/2 - this.clientWidth/2   " px");
  top:expression(this.parentNode.clientHeight/2 - this.clientHeight/2   " px");
  
  width: 60%;
  height: 60%;
}

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

Initial Description

                                

Initial Title
Vertical and Horizontal Centering with CSS

Initial Tags
css, design

Initial Language
CSS