Fill and overlap

Fill and overlap

Hi,

I have a rectangle and I want it to always fill the screen,no matter how "long" the webpage is and I want that rectangle to be on top of every element on the page.

I want the rectangle to overlap every element on the page,without affecting the functionality of other elements.
I have this code from the swipe example.

Thank you.
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4.   <meta charset="utf-8">
  5.   <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
  6.   <title>swipe</title>
  7.   <body>
  8.   <div class="overlay"></div>
  9.   
  10.   <link rel="stylesheet" href="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
  11.   <script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
  12.   <script src="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
  13.   <style>
  14.   html, body { padding: 0; margin: 0; }
  15.   html, .ui-mobile, .ui-mobile body {
  16.     height: 105px;
  17.   }
  18.   body{
  19.   position:relative;
  20.   }
  21.   .overlay{
  22.   position: absolute;
  23.   top: 0;
  24.   left: 0;
  25.   width: 100%;
  26.   height: 100%;
  27.   z-index: 10;
  28.   
  29.   }
  30.   .ui-mobile, .ui-mobile .ui-page {
  31.     min-height: 105px;
  32.   }
  33.   #nav {
  34.     font-size: 200%;
  35.     width:17.1875em;
  36.     margin:17px auto 0 auto;
  37.   }
  38.   #nav a {
  39.     color: #777;
  40.     border: 2px solid #777;
  41.     background-color: #ccc;
  42.     padding: 0.2em 0.6em;
  43.     text-decoration: none;
  44.     float: left;
  45.     margin-right: 0.3em;
  46.   }
  47.   #nav a:hover {
  48.     color: #999;
  49.     border-color: #999;
  50.     background: #eee;
  51.   }
  52.   #nav a.selected,
  53.   #nav a.selected:hover {
  54.     color: #0a0;
  55.     border-color: #0a0;
  56.     background: #afa;
  57.   }
  58.   div.box {
  59.     width: 30em;
  60.     height: 40em;
  61.     background-color: #108040;
  62.   }
  63.   div.box.swipe {
  64.     background-color: #7ACEF4;
  65.   }
  66.   </style>
  67. </head>
  68. <body>
  69.  
  70. <h3>Swipe the green rectangle to change its color:</h3>
  71. <div class="box"></div>
  72.  
  73. <script>
  74. $(function(){
  75.  
  76.   $( "div.box" ).on( "swipe", swipeHandler );
  77.  
  78.     function swipeHandler( event ){
  79.     $( event.target ).addClass( "swipe" );
  80.   }
  81. });
  82. </script>
  83.  
  84. </body>
  85. </html>