title: not able to style a ul inside a nav tag
body: <p>I am trying to make a nav menu for my website and have been using <a href="http://www.onextrapixel.com/2011/06/03/how-to-create-a-horizontal-dropdown-menu-with-html-css-and-jquery/" rel="nofollow">http://www.onextrapixel.com/2011/06/03/how-to-create-a-horizontal-dropdown-menu-with-html-css-and-jquery/</a>
  as a guide. It has worked fine but as soon as I try to add ( id="coolMenu" ) to the nav tag it stops working.</p>
  
  <p>I took it away from the ul tag and added it to the nav tag and it no longer works. It does not display anything at all. What am in doing wrong?</p>
  
  <p>Thanks.</p>
  
  <p>html code below:</p>
  
  <pre><code>&lt;nav id="coolMenu"&gt;
  &lt;ul&gt;
      &lt;li&gt;&lt;a href="#"&gt;Lorem&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Mauricii&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt; 
          &lt;a href="#"&gt;Periher&lt;/a&gt;
              &lt;ul class="noJS"&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Hellenico&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Genere&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Indulgentia&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Tyrio&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Quicumque&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>css below:</p>
  
  <pre><code>/* Structure
  ------------------------------------------*/
  #coolMenu,
  #coolMenu ul {
      list-style: none;
  }
  #coolMenu {
      float: left;
  }
  #coolMenu &gt; li {
      float: left;
  }
  #coolMenu li a {
      display: block;
      height: 2em;
      line-height: 2em;
      padding: 0 1.5em;
      text-decoration: none;
  }
  #coolMenu ul {
      position: absolute;
      display: none;
      z-index: 999;
  }
  #coolMenu ul li a {
      width: 80px;
  }
  #coolMenu li:hover ul.noJS {
      display: block; 
  }
  
  
  /* Main menu
  ------------------------------------------*/
  #coolMenu {
      font-family: Arial;
      font-size: 12px;
      background: #2f8be8;
  }
  #coolMenu &gt; li &gt; a {
      color: #fff;
      font-weight: bold;
  }
  #coolMenu &gt; li:hover &gt; a {
      background: #f09d28;
      color: #000;
  }
  
  
  /* Submenu
  ------------------------------------------*/
  #coolMenu ul {
      background: #f09d28;
  }
  #coolMenu ul li a {
      color: #000;
  }
  #coolMenu ul li:hover a {
      background: #ffc97c;
  }
  </code></pre>