How to display list on button hover?
<p>I am trying to display the list on button hover, but what happens is, whenever I hover near the button area, text gets displayed.</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>.header_nav {
  width: 800px;
  height: 400px;
}
.header_nav ul {
  list-style: none;
}
.header_nav ul ul {
  display: none;
}
.header_nav ul ul #nav_button:hover&gt;ul {
  display: block;
}
.header_nav ul ul li &gt;ul {
  display: none;
}
.header_nav ul li:hover &gt;ul {
  display: block;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav class="header_nav"&gt;
  &lt;ul&gt;
    &lt;li&gt;
      &lt;input type="button" value="Button 1" name="nav_button" id="nav_button"&gt;
      &lt;ul&gt;
        &lt;li&gt;Locations&lt;/li&gt;
        &lt;li&gt;
          Mumbai
          &lt;ul&gt;
            &lt;li&gt;Txt 1&lt;/li&gt;
            &lt;li&gt;Txt 2s&lt;/li&gt;
            &lt;li&gt;Txt 3&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li&gt;Delhi&lt;/li&gt;
        &lt;li&gt;Banglore&lt;/li&gt;
        &lt;li&gt;Nagpur&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
&lt;/nav&gt;</code></pre>
</div>
</div>
</p>

<p>JS FIDDLE : <a href="https://jsfiddle.net/fhv7drst/" rel="nofollow">https://jsfiddle.net/fhv7drst/</a></p>