Posted By

coreypurcell on 07/30/09


Tagged

design vertical centering


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

vali29
silentbob84
scitrenbaumgmailcom


Vertical Centering with CSS


 / Published in: CSS
 

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

works in IE6/IE7 with the css expression.

  1. .center {
  2. position: absolute;
  3. top:0; bottom:0;
  4. margin: auto 0;
  5. top:expression(this.parentNode.clientHeight/2 - this.clientHeight/2 + " px");
  6. height: 60%;
  7. }

Report this snippet  

You need to login to post a comment.