DIV 100% height


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



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

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.