title: How to make whole <li> element as a link?
body: <p>I am unable to make whole li element clickable. I tried display properties, but nothing really helped. Here is a 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>#top_menu ul li {
    position: relative;
    list-style: none;
    float: left;
    display: block;
  }
  
  #top_menu ul li a {
    display: block;
    padding: 0 14px;
    margin: 6px 0;
    line-height: 28px;
    text-decoration: none;
    color: #fff;
  }
  
  #top_menu ul li:hover&gt;a {
    color: #8fde62;
  }
  
  #top_menu ul ul {
    position: absolute;
    opacity: 0;
    background: rgba(70, 70, 70, 0.7);
  }
  
  #top_menu ul li:hover&gt;ul {
    opacity: 1;
  }
  
  #top_menu ul ul li {
    height: 0;
    overflow: hidden;
    padding: 0;
  }
  
  #top_menu ul li:hover&gt;ul li {
    height: 36px;
    overflow: visible;
    padding: 0;
  }
  
  #top_menu ul ul li a {
    padding: 4px 0 4px;
    margin: 0;
    border: none;
    border-bottom: 1px solid #353539;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul&gt;
    &lt;li&gt;&lt;a href="#"&gt;Additional&lt;/a&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href="#"&gt;Commands&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Guides&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>And here is the result (on the left of the list there is blank space-not active):</p>
  
  <p><a href="https://i.stack.imgur.com/BHepj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BHepj.png" alt="enter image description here"></a></p>
  
  <p>So what am I doing wrong? How can I fix that?</p>