Advertisement
Guest User

tripngroove

a guest
Jan 23rd, 2009
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.08 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>empty css layouts</title>
  6.  
  7. <style>
  8. div { border:1px solid #ccc; min-height:60px; } /* some rules to make the empty divs easy to see */
  9.  
  10. /* rules for a 3-column liquid layout */
  11. #wrapper {}
  12. #banner { }
  13. #nav { float:left; width:120px;}
  14. #right-column { float:right; width:120px;}
  15. #content { margin:0 140px;}
  16. #footer { clear:both; }
  17.  
  18. /* alternate rules for a 2-column fixed-width layout;
  19. to see these in action, simply comment out the other section and uncomment this one *//*
  20.  
  21. #wrapper { width:800px; margin:0 auto;}
  22. #banner {}
  23. #nav {}
  24. #right-column { float:right; width:120px;}
  25. #content { margin:0 140px 0 0; }
  26. #footer {}
  27. */
  28. </style>
  29.  
  30. </head>
  31.  
  32. <body>
  33.  
  34. <div id="wrapper">
  35. <div id="banner"></div>
  36. <div id="nav"></div>
  37. <div id="right-column"></div>
  38. <div id="content"></div>
  39. <div id="footer"></div>
  40. </div>
  41.  
  42. </body>
  43. </html>
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement