Posted By

noelj on 12/20/10


Tagged


Versions (?)

DIV 100% height


 / Published in: CSS
 

URL: http://www.tutwow.com/tips/quick-tip-css-100-height/

  1. html {
  2. height: 100%;
  3. }
  4. body {
  5. margin: 0;
  6. padding: 0;
  7. height: 100%;
  8. }
  9. #content {
  10. background: #EEE;
  11. border-left: 1px solid #000;
  12. border-right: 1px solid #000;
  13. padding: 0 20px 0 20px;
  14. margin: auto;
  15. font: 1.5em arial, verdana, sans-serif;
  16. width: 960px;
  17. height: 100%;
  18. }

Report this snippet  

You need to login to post a comment.