Posted By

1man on 07/05/06


Tagged

css centre horizontally


Versions (?)

Who likes this?

9 people have marked this snippet as a favorite

luman
arturo
panatlantica
fatihturan
markhope
Hansiplus
purpleraison
icarus
vali29


Centre using Negative Margins


 / Published in: CSS
 

  1. body {margin:0px; padding:0px;}
  2.  
  3. #Content {
  4. position:absolute;
  5. left:50%;
  6. width:500px;
  7. margin-top:50px;
  8. margin-left:-266px;
  9. padding:15px;
  10. }

Report this snippet  

You need to login to post a comment.