Posted By

irishspacemonk on 06/26/09


Tagged

css center body container


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

irishspacemonk
myrebel420


HTML Body Center Container


 / Published in: CSS
 

Creates framework for HTML centered web page.

  1. body {
  2. text-align: center;
  3. padding: 0px;
  4. margin: 0px auto;
  5. background: #fff url() no-repeat top center;
  6. }
  7.  
  8. #container {
  9. margin: 0 auto !important;
  10. height: 100% auto;
  11. width: 800px;
  12. background: #fff url(background.jpg) no-repeat top center;
  13. }

Report this snippet  

You need to login to post a comment.