title: How do I position my side menu above the content of the page?
body: <p>I am attempting a mobile first approach for this website, however, when the side menu pops out after clicking the button only a portion of the menu is underneath the page content while the rest is on top as it should be. </p>
  
  <p>what other options are there to take when trying to troubleshoot a problem like this?</p>
  
  <p>I've tried moving the side menu from the  section and placed it underneath, didn't work</p>
  
  <p>I tried using the z-index on the .side-nav class - didn't work</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function toggleNav() {
    document.getElementById("side-menu").style.width = "50%";
    document.getElementById("side-menu").style.display = "block";
    document.getElementById("side-hidden").style.width = "50%";
    document.getElementById("noScroll").style.overflow = "hidden";
  }
  
  function closeSideMenu() {
    document.getElementById("side-menu").style.width = "0";
    document.getElementById("side-hidden").style.width = "0";
    document.getElementById("noScroll").style.overflow = "scroll";
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container {
    padding: 0 1em;
  }
  
  body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    text-align: center;
  }
  
  
  /*-- ---------------------------------------------------------------- --&gt;
  &lt;!--                        NAVIGATION                                --&gt;
  &lt;!-- --------------------------------------------------------------- --*/
  
  .navbar {
    background-color: #FFFFFF;
    width: 100%;
    height: 78px;
    border-bottom: 8px solid #CE2026;
  }
  
  .navbar-links {
    display: none;
  }
  
  #logo {
    display: none;
  }
  
  .open-slide {
    float: right;
    margin-top: 25px;
    margin-right: 20px;
    display: block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
    &lt;link rel="stylesheet" href="style.css"&gt;
    &lt;link href="https://fonts.googleapis.com/css?family=Raleway:300,500,700,900" rel="stylesheet"&gt;
    &lt;link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.css"&gt;
    &lt;link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"&gt;
    &lt;title&gt;Brushworks NW Inc.&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body id="noScroll"&gt;
    &lt;!-- ----------------------------------------------------------------------------------- --&gt;
    &lt;!--                                  NAVIGATION                                         --&gt;
    &lt;!-- ----------------------------------------------------------------------------------- --&gt;
    &lt;nav class="navbar grid animated fadeIn"&gt;
      &lt;div class="open-slide"&gt;
        &lt;div&gt;
          &lt;a href="#" onclick="toggleNav()"&gt;
            &lt;svg width="30" height="30"&gt;
                       &lt;path d="M0,5 35,5" stroke="#000" stroke-width="2"/&gt;
                       &lt;path d="M0,14 35,14" stroke="#000" stroke-width="2"/&gt;
                       &lt;path d="M0,23 35,23" stroke="#000" stroke-width="2"/&gt;
                   &lt;/svg&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;ul class="navbar-links"&gt;
        &lt;li&gt;&lt;a class="active" href="#"&gt;HOME&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;ABOUT US&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;SERVICES&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;GALLERY&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;CONTACT US&lt;/a&gt;&lt;/li&gt;
        &lt;li id="number"&gt;(360) 679-4444&lt;/li&gt;
      &lt;/ul&gt;
      &lt;div id="side-hidden-parent"&gt;
        &lt;div id="side-hidden"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div id="side-menu" class="side-nav"&gt;
        &lt;ul class="on-top"&gt;
          &lt;li&gt;&lt;a href="#" class="btn-close" onclick="closeSideMenu()"&gt;&amp;times;&lt;/a&gt;&lt;/li&gt;
          &lt;li class="nav-item"&gt;&lt;a class="side-active" href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
          &lt;li class="nav-item"&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt;
          &lt;li class="nav-item"&gt;&lt;a href="#"&gt;Services&lt;/a&gt;&lt;/li&gt;
          &lt;li class="nav-item"&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/nav&gt;
    &lt;header id="hero" class="grid"&gt;
      &lt;div class="container"&gt;
        &lt;img id="logo" class="animated fadeInRight" src="images/brushworks_logo.png" alt="brush roller"&gt;
        &lt;div class="heroText"&gt;
          &lt;h1 id="home-h" class="animated fadeInUp"&gt;The Best Painters For Your Home or Business&lt;/h1&gt;
          &lt;h2 id="home-p" class="animated fadeInUp"&gt;See why we're trusted for over 30 years to service Whidbey Island. Our results speak for themselves&lt;/h2&gt;
          &lt;a class="animated fadeInRight href="&gt;Learn More&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/header&gt;
    &lt;main&gt;
      &lt;!-- ----------------------------------------------------------------------------------- --&gt;
      &lt;!--                                     RED STRIP                                       --&gt;
      &lt;!-- ----------------------------------------------------------------------------------- --&gt;
      &lt;section id="red-strip grid" class="grid"&gt;
        &lt;div class="container"&gt;
          &lt;div id="strip-1" class="strip-1-center animated slideInUp"&gt;
            &lt;div class="flex-1"&gt;
              &lt;h3&gt;Residential&lt;/h3&gt;
              &lt;p&gt;Our qualified staff are trained to use the techniques and materials that are best suited for each individual home.&lt;/p&gt;
            &lt;/div&gt;
            &lt;div class="line"&gt;&lt;/div&gt;
            &lt;div class="flex-1"&gt;
              &lt;h3&gt;Commercial&lt;/h3&gt;
              &lt;p&gt;No matter what business you're in or how big you facility is, we have the staff and equipment to get it done&lt;/p&gt;
            &lt;/div&gt;
            &lt;div class="line"&gt;&lt;/div&gt;
            &lt;div class="flex-1"&gt;
              &lt;h3&gt;Interior/Exterior&lt;/h3&gt;
              &lt;p&gt;Whether it's inside or out, we have you covered. Our staff can manage any texture and any material&lt;/p&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/section&gt;
      &lt;!-- ----------------------------------------------------------------------------------- --&gt;
      &lt;!--                                     GIVE CALL                                       --&gt;
      &lt;!-- ----------------------------------------------------------------------------------- --&gt;
      &lt;section id="give-call" class="grid"&gt;
        &lt;div class="container"&gt;
          &lt;div class="st-2-center"&gt;
            &lt;h3 class="st-2-call"&gt;Give us a call!&lt;/h3&gt;
            &lt;h3 class="st-2-number"&gt;(360)679-444&lt;/h3&gt;
            &lt;p class="st-2-p"&gt;We love working on Whidbey Island and the surrounding area. The diverse, eclectic and highly creative customer base keeps our staff and crew challenged and motivated to exceed our customers expectations.&lt;/p&gt;
            &lt;a href="#"&gt;Contact Us&lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="st-2-emailus"&gt;
            &lt;h4 class="email-us"&gt;OR EMAIL US&lt;/h4&gt;
            &lt;img src="images/email.jpg" alt="email screen on a phone" width="312" height="140"&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/section&gt;
      &lt;!-- ----------------------------------------------------------------------------------- --&gt;
      &lt;!--                                     ICON                                            --&gt;
      &lt;!-- ----------------------------------------------------------------------------------- --&gt;
      &lt;section id="icons" class="grid"&gt;
        &lt;div class="container"&gt;
          &lt;div class="center-3-top"&gt;
            &lt;div&gt;
              &lt;h4 class=""&gt;OFFERING YOU THE BEST SOLUTION FOR YOUR PROJECT&lt;/h4&gt;
            &lt;/div&gt;
            &lt;div&gt;
              &lt;p class=""&gt;We provide many painting services to our customers. All of our work is performed by our highly qualified staff and backed by our 100% customer satisfaction guarantee.
              &lt;/p&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="center-3"&gt;
            &lt;div class="local"&gt;
              &lt;i class="fas fa-map-pin fa-2x"&gt;&lt;/i&gt;
              &lt;h2&gt;LOCALLY OWNED&lt;/h2&gt;
              &lt;p&gt;With over 30 years experience as professional painters, we are one of the largest residential and commercial painting companies on Whidbey Island.&lt;/p&gt;
            &lt;/div&gt;
            &lt;div class="value"&gt;
              &lt;i class="fas fa-dollar-sign fa-2x"&gt;&lt;/i&gt;
              &lt;h2&gt;BEST VALUE&lt;/h2&gt;
              &lt;p&gt;We are confident that we provide the highest quality work for the price. We take great pride in the work we do and refuse to let you pay for work that does not meet expectations.&lt;/p&gt;
            &lt;/div&gt;
            &lt;div class="qualified"&gt;
              &lt;i class="fas fa-medal fa-2x"&gt;&lt;/i&gt;
              &lt;h2&gt;PROFESSIONALLY QUALIFIED&lt;/h2&gt;
              &lt;p&gt;We provide many painting services to our customers. All of our work is performed by our highly qualified staff and backed by our 100% customer satisfaction guarantee.&lt;/p&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/section&gt;
      &lt;!-- ----------------------------------------------------------------------------------- --&gt;
      &lt;!--                                     PARALAX                                         --&gt;
      &lt;!-- ----------------------------------------------------------------------------------- --&gt;
      &lt;section id="paralax" class="grid"&gt;
        &lt;div class="paralax-left"&gt;
  
        &lt;/div&gt;
        &lt;div class="paralax-right"&gt;
          &lt;h3&gt;Any Project,&lt;/h3&gt;
          &lt;h3&gt;Any Size&lt;/h3&gt;
          &lt;div class="strip-4-p"&gt;
            &lt;p class="p-width"&gt;Our shop can handle projects from
              &lt;br&gt;small to large. Over that last 30 years we have seen it all and done it all. &lt;/p&gt;
            &lt;a class="read" href="#"&gt;READ MORE&lt;/a&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/section&gt;
      &lt;!-- ----------------------------------------------------------------------------------- --&gt;
      &lt;!--                                  CONTACT INFO                                       --&gt;
      &lt;!-- ----------------------------------------------------------------------------------- --&gt;
      &lt;section id="contact-info" class="grid"&gt;
        &lt;div class="container"&gt;
          &lt;div id="adress"&gt;
            &lt;p class="red"&gt;Address&lt;/p&gt;
            &lt;p class="regular"&gt;Brushworks NW &lt;br&gt; 691 Oak St. Unit I &lt;br&gt; Oak Harbor, WA 98277
            &lt;/p&gt;&lt;br&gt;
            &lt;p class="red"&gt;Telephone&lt;/p&gt;
            &lt;p class="regular"&gt;Tel: (360) 679-4444 &lt;br&gt; Fax: (360) 679-5026
            &lt;/p&gt;&lt;br&gt;
            &lt;p class="red"&gt;Email&lt;/p&gt;
            &lt;p class="regular"&gt;bwnwinc@gmail.com&lt;/p&gt;&lt;br&gt;
            &lt;p class="red"&gt;Opening Hours&lt;/p&gt;
            &lt;p class="regular"&gt;Mon - Fri: 7am - 5pm&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="form"&gt;
            &lt;div&gt;
              &lt;h6&gt;Call Or Email Us Today!&lt;/h6&gt;
            &lt;/div&gt;
            &lt;form class="container"&gt;
              &lt;input class="form" type="text" name="name" placeholder="Full name" style="width: 95%; height: 30px"&gt;&lt;br&gt;
              &lt;input class="form" type="text" name="email" placeholder="Email" style="width: 95%; height: 30px"&gt;&lt;br&gt;
              &lt;textarea class="form" name="message" placeholder="Message" style="width: 95%; height: 126px"&gt;&lt;/textarea&gt;
              &lt;input type="submit" value="Send"&gt;
            &lt;/form&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/section&gt;
    &lt;/main&gt;
    &lt;!-- ----------------------------------------------------------------------------------- --&gt;
    &lt;!--                                     FOOTER                                          --&gt;
    &lt;!-- ----------------------------------------------------------------------------------- --&gt;
    &lt;footer class="grid"&gt;
      &lt;div class="footer container"&gt;
        &lt;div class="footer-item"&gt;
          &lt;h3&gt;OVER 30 YEARS &lt;br&gt;EXPERIENCE&lt;/h3&gt;
          &lt;p&gt;We provide many painting services to our customers. All of our work is performed by our highly qualified staff and backed by our 100% customer satisfaction guarantee. &lt;/p&gt;
        &lt;/div&gt;
        &lt;div class="footer-item"&gt;
          &lt;div class="list"&gt;
            &lt;h3 class="adjust"&gt;OUR SERVICES&lt;/h3&gt;
            &lt;p&gt;- Deck Work&lt;/p&gt;
            &lt;p&gt;- Pressure Washing&lt;/p&gt;
            &lt;p&gt;- Staining&lt;/p&gt;
            &lt;p&gt;- Doors and Cabinets&lt;/p&gt;
            &lt;p&gt;- Mill Work Specialists&lt;/p&gt;
            &lt;p&gt;- Interior/Exterior Painting&lt;/p&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="footer-item"&gt;
          &lt;h3 class="adjust"&gt;ADDRESS&lt;/h3&gt;
          &lt;p class="regular"&gt;Brushworks NW &lt;br&gt; 691 Oak St. Unit I &lt;br&gt; Oak Harbor, WA 98277
          &lt;/p&gt;&lt;br&gt;
          &lt;p&gt;Phone: (360) 679-4444 &lt;br&gt; Fax: (360) 679-5026 &lt;br&gt; Email: bwnwinc@gmail.com&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="facebook container"&gt;
        &lt;a href="https://www.facebook.com/brushworksnwinc/"&gt;&lt;i class="fab fa-facebook-square fa-2x"&gt;&lt;/i&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div class="copyright"&gt;
        &lt;p class="center"&gt;© 2019 Brushworks Inc. NW &lt;br&gt; Designed by &lt;a href="https://www.oakharborwebdesigns.com/"&gt;Oak Harbor Web Designs&lt;/a&gt;&lt;/p&gt;
      &lt;/div&gt;
    &lt;/footer&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The side menu is supposed to be on top of the content, but a portion of the div is not.</p>