Posted By

TimHaslam on 07/16/08


Tagged

wrapper center


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

basicmagic
Rauto


wrapper


 / Published in: CSS
 

Easy wrapper to center things, margin-left needs to be half of width

  1. #wrapper {
  2. width: 960px;
  3. position: relative;
  4. left: 50%;
  5. margin-left: -480px;
  6. }

Report this snippet  

You need to login to post a comment.