Posted By

noelj on 07/05/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

astroneo


CSS Center DIV on absolute position


 / Published in: CSS
 

  1. #container {
  2. width: 140px;
  3. border: 1px solid #666666;
  4. position: absolute;
  5. top: 0px;
  6. left: 50%;
  7. margin-left: -70px; /* width/2 */
  8. }

Report this snippet  

You need to login to post a comment.