title: How to get a full-width (of screen) dropdown-menu
body: <p>Trying to get a full-width dropdown-menu, but now it takes the entire width of the parent element. Which is in this case the list item. </p>
  
  <p>Could someone help me to fix that. The most important thing is that this dropdown-menu should also be responsive as well. No JavaScript and other JavaScript framework please, only in pure CSS. </p>
  
  <p><a href="https://codepen.io/anon/pen/dWoMoJ" rel="nofollow noreferrer">https://codepen.io/anon/pen/dWoMoJ</a></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-css lang-css prettyprint-override"><code>html, 
  body {
   width: 100%;
  }
  
  body {
   margin: 0;
   padding: 0;
   overflow-x: hidden;
   font-size: 16px;
   color: #666;
   background: transparent;
  }
  
  .navbar-links {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
   }
  
  .links-to li {
    display: inline-block;
    min-width: 150px;
    text-align: center;
      position: relative;
    margin-left: -5px;
    color: #828282;
    margin-top: -16px;
   }
   .links-to li .main-links {
    display: block;
    padding-top: 20px;
    padding-bottom: 20px;
    border: 1px solid green;
    overflow: hidden;
   }
   .links-to li a:hover {
    color: #eb0028;
    cursor: pointer;
   }
  
  #navbar-dropdown-toggle{
      position: absolute;
  }
  
  .dropdown-label-navbar {
     height: 100%;
     width: 100%;
     display: block;
     position: absolute;
     background: red;
      top: 0;
      left: 0;
  }
  
   .entire-block {
    width: 500px;
    height: 150px;
    position: relative;
    display: block;
    margin: 0 auto;
    padding: 0;
    margin-top: 10px;
   }
  
   .dropdown-menu {
    width: 100%;
    opacity: 0;
    background: white;
    position: absolute;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
    border: 1px solid red;
    max-height: 20px;
      box-sizing: border-box;
    overflow: hidden;
   }
  
   .navbar-dropdown:checked ~ .dropdown-menu {
    display: block;
    transition: max-height 1s;
    max-height: 300px;
    opacity: 1.0;
   }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="navbar-links" id="menu"&gt;
              &lt;ul class="links-to"&gt;
                  &lt;li class="main-nav"&gt;
                      &lt;a href="#99" class="main-links"&gt;Home&lt;/a&gt;
                  &lt;/li&gt;
  
                  &lt;li class="main-nav"&gt;
                      &lt;a href="#99" class="main-links"&gt;Shoes&lt;/a&gt;
                  &lt;/li&gt;
  
                  &lt;li class="main-nav"&gt;
                      &lt;input id="navbar-dropdown-toggle" type="checkbox" class="navbar-dropdown"/&gt;
                      &lt;label class="dropdown-label-navbar" id="checkboxNavbar" for="navbar-dropdown-toggle"&gt;&lt;/label&gt;
  
                      &lt;a href="#99" class="main-links"&gt;Store&lt;/a&gt;
                      &lt;ul class="dropdown-menu" id="checkboxDropdown"&gt;
                          &lt;div class="entire-block"&gt;
                              &lt;div class="dropdown-image-block"&gt;
                              &lt;/div&gt;
                              &lt;li class="list-of-dropdown"&gt;
                                  &lt;div class="dropdown-list"&gt;&lt;a href="#99"&gt;Apple&lt;/a&gt;&lt;/div&gt;
                                  &lt;div class="dropdown-list"&gt;&lt;a href="#99"&gt;Banana&lt;/a&gt;&lt;/div&gt;
                                  &lt;div class="dropdown-list"&gt;&lt;a href="#99"&gt;Christus&lt;/a&gt;&lt;/div&gt;
                              &lt;/li&gt;
                          &lt;/div&gt;
                      &lt;/ul&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>