Centered Layout without wrapping


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



Copy this code and paste it in your HTML
  1. html
  2. { background: #a70d0f; }
  3.  
  4. body
  5. { width: 500px;
  6. margin: 20px auto;
  7. padding: 20px;
  8. border: 1px solid black;
  9. background: #f9ddb5;
  10. min-height: 100%; }

URL: http://www.webkrauts.de/2010/12/04/zentrieren-ohne-zusaetzliches-markup/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.