title: how to make a ul same size as parent li?
body: <p>I'm working a dropdown menu, but I'm having a problem with the size of inner <code>ul</code> I trying to make it the same size as the parent <code>li</code>.</p>
  
  <p>Can somebody tell me what am i doing wrong?</p>
  
  <p><a href="https://jsfiddle.net/o9kkb1er/1/" rel="nofollow">Here</a> is a demo of my code.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>* {
    margin: 0px;
    padding: 0px;
  }
  ul.topMenu {
    background: #111;
    overflow: hidden;
  }
  ul.topMenu li {
    float: left;
    list-style: none;
  }
  ul.topMenu li a {
    padding: 12px 15px;
    display: block;
    color: white;
    text-decoration: none;
    transition: .4s;
    border-right: 1px solid #fff;
  }
  ul.topMenu li:first-child a {
    border-left: 1px solid #222222;
  }
  ul.topMenu li a:hover,
  ul.topMenu li a:focus {
    background: black;
  }
  ul.topMenu ul {
    position: absolute;
    background: #222;
  }
  ul.topMenu ul li {
    float: none;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul id="topMenu" class="topMenu"&gt;
    &lt;li&gt;&lt;a href="#"&gt;Sed ut perspiciatis &lt;/a&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Nemo enim &lt;/a&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href="#"&gt;Sit amet &lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Excepteur &lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Neque  &lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Neque porro &lt;/a&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Ut enim ad &lt;/a&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Quis autem vel eum &lt;/a&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href="#"&gt;Sit amet &lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Excepteur &lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Neque  &lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>