Advertisement
lalatino

two column design

Aug 15th, 2012
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.37 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <title> page layout for http://stackoverflow.com/questions/11976356/why-dont-html-elements-always-obey-css-height-attribute </title>
  5. <style type="text/css">
  6.  
  7. html,body {
  8.     width:100%;
  9.     height:99%;
  10.     margin:0;
  11.     padding:0;
  12. }
  13.  
  14. #left {
  15.     float:left;
  16.     width:6.50in;
  17.     height:100%;
  18.     border:4px solid #008;
  19.     overflow: auto;
  20.     background-color: #eee;
  21. }
  22.  
  23. #right {
  24.     position: relative;
  25.     margin-left: 6.58in;
  26.     height:100%;
  27.     text-align:left;
  28.     border:4px solid #080;
  29. }
  30.  
  31. #left h1 {
  32.     margin-left: 1em;
  33.     color:blue;
  34. }
  35.  
  36. #left ul {
  37.     list-style-type:none;
  38.     padding:8px 2px;
  39. }
  40.  
  41. #left ul li a {
  42.     font-size:32px;
  43.     padding: 2px 1em;
  44.     text-decoration:none;
  45. }
  46.  
  47. #left ul li:hover {
  48.     background-color:blue;
  49.     color:white;
  50. }
  51.  
  52. #left ul li:hover a {
  53.     color:white;
  54. }
  55.  
  56. #CONTENT_HOLDER {
  57.     border:1px solid #FF00FF;
  58.     height:100%;
  59.     width:100%;
  60. }
  61.  
  62. </style>
  63. </head>
  64. <body>
  65.  
  66. <div id="left">
  67. <h1>Pages</h1>
  68. <div>
  69.     <ul>
  70.         <li><a href="page1.htm" target="CONTENT_HOLDER">First Page</a></li>
  71.         <li><a href="page2.htm" target="CONTENT_HOLDER">Second Page</a></li>
  72.         <li><a href="lastPage.htm"  target="CONTENT_HOLDER">Final Page</a></li>
  73.     </ul>
  74. </div>
  75. </div>
  76.  
  77. <div id="right">
  78.     <iframe name="CONTENT_HOLDER" id="CONTENT_HOLDER"></iframe>
  79. </div>
  80.  
  81. </body>
  82. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement