Posted By

kawohi on 09/18/10


Tagged

css html enhancements progressive


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

abbyabigale
scilec


TIP: Use the body Element as a wrapper.


 / Published in: HTML
 

URL: http://camendesign.com/code/developpeurs_sans_frontieres

Did you know you can use the body element as a wrapper instead of the usual div? Yup! Check out the code as to what I mean. Credits to Kroc Camen for writing a article about this!

  1. body {
  2. background: #eee;
  3. width: 960px;
  4. }
  5. </style>
  6. </head>
  7.  
  8. <div>
  9. ...
  10. </div>
  11. <div>
  12. ...
  13. </div>
  14.  
  15. </body>

Report this snippet  

You need to login to post a comment.