Hamburger menu

Is there a way to make a burger menu lower the content underneath? – HTML and CSS – SitePoint Forums





  
  
  New Roots | Welcome
  



  

Sell Your House Today

Sell your house in AS-IS conditions, for a fair CASH OFFER. Whether it is a preforeclosure,
divorce sale, simply just a stressful home, or whatever the situation may be, we can help!

Get Started...

New Roots Investments, Copyright © 2018

CSS

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
   15px/1.5 Arial, Helvetica, sans-serif;
}

/*Global*/
.container {
  width: 80%;
  margin: auto;
  overflow: hidden;
}

/*Global Menu*/
.nav {
  border-bottom: 1px solid #EAEAEB;
  text-align: right;
  height: 70px;
  line-height: 70px;
}

.menu {
  margin: 0 30px 0 0;
}

.menu a {
  clear: right;
  text-decoration: none;
  margin: 0 10px;
  line-height: 70px;
}

label {
  margin: 0 40px 0 0;
  font-size: 20px;
  line-height: 70px;
  display: none;
  width: 26px;
  float: right;
}

#toggle {
  display: none;
}

@media only screen and (max-width: 500px) {
  label {
    display: block;
    cursor: pointer;
  }
  .menu {
    text-align: center;
    width: 100%;
    display: none;
  }
  .menu a {
    display: block;
    border-bottom: 1px solid #EAEAEB;
    margin: 0;
  }
  #toggle:checked + .menu {
    display: block;
  }
}