HTML Body Center Container


/ Published in: CSS
Save to your folder(s)

Creates framework for HTML centered web page.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.