title: css drop down menu force to top not under
body: <p>I have CSS code for a dropdown menu. I'm creating 3 menus with the same CSS where each one is displayed under the other. The html is produced from a Perl script as data is created for each search.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="true">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#menu {
      padding:0;
      margin:0;
  }
  
  ul#menu {
      list-style: none;
      top: 1.1em;
      position: relative;
      background: #171e35;
      padding: 1em 1em;
      margin-bottom: 10px;
  }
  
  ul#menu ul {
      display: none;
      position: absolute;
      top: 34px;
      left: -30px;
      width: 250px;
      text-align: left;  
      *width: 100%; /* IE7 hack*/
  }
      
  ul#menu li:hover ul {
      display: block;
  }
  
  ul#menu li {
      position: relative;
      display: inline;
  }
  
  ul#menu li a {
      padding: 0.5em 1.0em 0.9em 1.0em;
      color: #fff;
      text-decoration: none;
  }
  
  .submenu li a {
      display:block;
  }
  
  #menu ul li a {
      background: #171e35;
      left;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul id="menu"&gt;
      &lt;li&gt;&lt;a href="#"&gt;Menu&lt;/a&gt;
          &lt;ul class="submenu"&gt;
              &lt;li&gt;&lt;a href="$site_url&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="index.cgi&gt;See ALL&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="index.cgi&gt;Quick Availability&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;!-- And the second menu code: --&gt;
  
  &lt;ul id="menu"&gt;
      &lt;li&gt;&lt;a href="#"&gt;Choose&lt;/a&gt;
          &lt;ul class="submenu"&gt;
              &lt;li&gt;&lt;a href="$site_url&gt;Blah&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="index.cgi&gt;Blah2&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="index.cgi&gt;Blah3&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;!-- And third is same --&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>PROBLEM</strong>: The top/first menu drops down underneath the next menu so it can't be read. Is there code that will force the active drop down to be on top?</p>