CSS for a simple fixed-width page without wrapper DIVs


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



Copy this code and paste it in your HTML
  1. /* http://www.sitepoint.com/blogs/2009/02/11/styling-the-html-and-body-elements/ */
  2. html {
  3. background-color: #333;
  4. }
  5. body {
  6. background-color: #fff;
  7. width: 750px;
  8. margin: 0 auto;
  9. position: relative
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.