Advertisement
Jeffersonvdh

Untitled

Jan 21st, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.45 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html lang="en-US">
  3. <head>
  4.  
  5.     <meta charset="UTF-8">
  6.     <link rel="stylesheet" type="text/css" href="style/main_style.css">
  7.    
  8.     <title>Jefferson Webdesign</title>
  9.  
  10.     <script type="text/javascript">
  11.  
  12.         var container = document.getElementById("container");
  13.         function resize() {
  14.        
  15.  
  16.         if (typeof window.innerWidth != 'undefined') {
  17.             viewportwidth = window.innerWidth,
  18.             viewportheight = window.innerHeight
  19.         }
  20.  
  21.         // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
  22.  
  23.         else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) {
  24.             viewportwidth = document.documentElement.clientWidth,
  25.             viewportheight = document.documentElement.clientHeight
  26.         }
  27.  
  28.         // older versions of IE
  29.  
  30.         else {
  31.             viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
  32.             viewportheight = document.getElementsByTagName('body')[0].clientHeight
  33.         }
  34.         container.style.height = viewportheight+"px";
  35.         }
  36.     </script>
  37.  
  38. </head>
  39.  
  40. <body onload="resize()" onresize="resize()">
  41.  
  42. <div id="main_wrapper">
  43.  
  44.     <div id="landing_page">
  45.         <div class="container" id="container">
  46.             <div id="logo"><img src="images/logo.png" alt="Jefferson Webdesign"></div>
  47.         </div>
  48.     </div>
  49.  
  50.     <div id="work">
  51.         <div class="container" id="container">
  52.  
  53.         </div>
  54.     </div>
  55.  
  56. </div>
  57.  
  58. </body>
  59.  
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement