title: Overlay Slide out menu
body: <p>I have a slide out menu which slides out from the right but the issue is that it Pushes the rest of the content to the side and I don't want that.</p>
  <p>I want it to overlay the site content so the user can still see the content. Heres my code:</p>
  <p><strong>HTML:</strong></p>
  <pre><code>&lt;ul class=&quot;navigation&quot;&gt;
  &lt;li class=&quot;nav-item&quot;&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
  &lt;li class=&quot;nav-item&quot;&gt;&lt;a href=&quot;#&quot;&gt;Portfolio&lt;/a&gt;&lt;/li&gt;
  &lt;li class=&quot;nav-item&quot;&gt;&lt;a href=&quot;#&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
  &lt;li class=&quot;nav-item&quot;&gt;&lt;a href=&quot;#&quot;&gt;Blog&lt;/a&gt;&lt;/li&gt;
  &lt;li class=&quot;nav-item&quot;&gt;&lt;a href=&quot;#&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;input type=&quot;checkbox&quot; id=&quot;nav-trigger&quot; class=&quot;nav-trigger&quot; /&gt;
  &lt;label for=&quot;nav-trigger&quot;&gt;&lt;/label&gt;
  // Site content
  &lt;div class=&quot;site-wrap&quot;&gt;&lt;/div&gt;
  </code></pre>
  <p><strong>CSS:</strong></p>
  <pre><code>.navigation {
  /* critical sizing and position styles */
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  
  /* non-critical appearance styles */
  list-style: none;
  background: #f8f8f8;
  }
  
  /* Navigation Menu - List items */
  .nav-item {
  /* non-critical appearance styles */
  width: 200px;
  float: right;
  border-top: 1px solid #111;
  border-bottom: 1px solid #000;
  }
  
  .nav-item a {
  /* non-critical appearance styles */
  display: block;
  padding: 1em;
  background: linear-gradient(135deg, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
  color: white;
  font-size: 1.2em;
  text-decoration: none;
  transition: color 0.2s, background 0.5s;
  }
  
  .nav-item a:hover {
  color: #c74438;
   background: linear-gradient(135deg, rgba(0,0,0,0) 0%,rgba(75,20,20,0.65) 100%);
   }
  
  /* Site Wrapper - Everything that isn't navigation */
  .site-wrap {
  /* Critical position and size styles */
     min-height: 100%;
     min-width: 100%;
     background-color: white; /* Needs a background or else the nav will show through */
     position: relative;
     top: 0;
     bottom: 100%;
     left: 0;
     right: 500px;
     z-index: 1;
  
     /* non-critical apperance styles */
  
     background-image: linear-gradient(135deg, rgb(254,255,255) 0%,rgb(221,241,249) 35%,rgb(160,216,239) 100%);
     background-size: 200%;
     }
  
  /* Nav Trigger */
  .nav-trigger {
  /* critical styles - hide the checkbox input */
  position: absolute;
  clip: rect(0, 0, 0, 0);
  }
  
  label[for=&quot;nav-trigger&quot;] {
  /* critical positioning styles */
   position: absolute;
   top: 15px;
   right: 100px;
   z-index: 2;
  
  /* non-critical apperance styles */
  height: 30px;
  width: 30px;
  cursor: pointer;
  background-image: url(&quot;data:image/svg+xml;utf8,&lt;svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' x='0px' y='0px' width='30px' height='30px' viewBox='0 0 30 30' enable-background='new 0 0 30 30' xml:space='preserve'&gt;&lt;rect width='30' height='6'/&gt;&lt;rect y='24' width='30' height='6'/&gt;&lt;rect y='12' width='30' height='6'/&gt;&lt;/svg&gt;&quot;);
  background-size: contain;
  }
  
  /* Make the Magic Happen */
   .nav-trigger + label {
    transition: 0.2s;
    }
  
   .nav-trigger:checked + label, .site-wrap {
     right: 415px;
    }
  
   .nav-trigger:checked ~ .site-wrap {
       left: -300px;
       border-right: 1px solid #e7e7e7;
    }
  
  
   /* Micro reset */
     *,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;}
     html, body { height: 100%; width: 100%; font-family: Helvetica, Arial, sans-serif;          }
  </code></pre>
  <p>Heres what it looks like now:</p>
  <p><a href="https://i.stack.imgur.com/cGtrV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cGtrV.png" alt="enter image description here" /></a></p>
  <p><strong>Any help will be greatly appreciated!</strong></p>
  <p><strong>Heres a working Coden Pen of the code above:</strong></p>
  <p><a href="http://codepen.io/coder26/pen/RaOGqZ" rel="nofollow noreferrer">http://codepen.io/coder26/pen/RaOGqZ</a></p>