title: CSS + HTML dropdown menu overlapping issue
body: <p>I have a problem with dropdown menu children overlapping parent element. Please check my fiddle to understand the problem:
  <a href="http://jsfiddle.net/ncqke/" rel="nofollow noreferrer">Fiddle example</a></p>
  <p>HTML code:</p>
  <pre><code>&lt;div id=&quot;main_category_menu&quot;&gt;
  &lt;ul id=&quot;menu&quot;&gt;
          &lt;li&gt;
              &lt;a href=&quot;#&quot;&gt;Category&lt;/a&gt;
              &lt;div class=&quot;menu-container&quot;&gt;
              &lt;h3&gt;Text goes here&lt;/h3&gt;
              Items count: tralala&lt;hr/&gt;
              &lt;ul class=&quot;menu_category&quot;&gt;
                  &lt;li class=&quot;menu_subcategory&quot;&gt;
                      &lt;a href=&quot;browse.php?id=76&quot;&gt;
                          Advertising(0)
                      &lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class=&quot;menu_subcategory&quot;&gt;
                      &lt;a href=&quot;browse.php?id=76&quot;&gt;
                          Blalala(0)
                      &lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class=&quot;menu_subcategory&quot;&gt;
                      &lt;a href=&quot;browse.php?id=76&quot;&gt;
                          Super megatron(0)
                      &lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
              &lt;/div&gt;
          &lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  <p>CSS code:</p>
  <pre><code>#main_category_menu{
  width: 100%;
  }
  
  #menu ul, #menu li {
    line-height:22px;
    text-align:left;
    font-size:14px;
  }
  
  #menu {
    list-style:none;
    width:100%;
    margin:0 auto;
    height:45px;
    padding:5px 30px;
  }
  
  #menu li {
    float:left;
    display:block;
    position:relative;
    text-align:center;
    padding:4px 10px;
    margin:7px 30px 0 0;
    border:none;
  }
  #menu li:hover {
    border:1px solid #b7b7b7;
    border-bottom: none;
    padding:4px 9px;
    background: yellow;
        border-radius:5px 5px 0 0;
    -moz-border-radius:5px 5px 0 0;
    -webkit-border-radius:5px 5px 0 0;
    z-index: 10;
  }
  #menu li a {
    font-size:14px;
    color: #444444;
    display:block;
    outline:0;
    text-decoration:none;
  }
  #menu li:hover a {
    color:#161616;
  }
  
  #menu .menu-container{
    margin:0px auto;
    float:left;
    position:absolute;
    left:-999em;
    text-align:left;
    padding:10px 5px;
    border:1px solid #b7b7b7;
    background-color: #ffffff;
  
        border-radius:0 5px 5px 5px;
    -moz-border-radius:0 5px 5px 5px;
    -webkit-border-radius:0 5px 5px 5px;
  }
  #menu .menu-container {
    width:280px;
    background: transparent url('logo.gif') no-repeat right bottom;
  }
  #menu li:hover .menu-container{
    top:auto;
    left:-1px;
  }
  
  #menu p, #menu h2, #menu h3, #menu ul li {
    line-height:21px;
    font-size:12px;
    text-align:left;
  }
  #menu p {
    line-height:18px;
    margin-bottom:10px;
    color:#F2E8E8;
  }
  #menu h3, #menu h2 {
    font-size:11px;
    margin:7px 0 14px 0;
    padding-bottom:5px;
    text-transform:uppercase;
    color: #999999;
  }
  #menu li:hover div a {
    color: #666666;
    font-size: 11px;
    padding-left: 6px;
  }
  #menu li:hover div a:hover {
    color: #FAFAFA;
    background:#99DE00;
  }
  #menu li ul {
    list-style:none;
    padding:0;
    margin-bottom:12px;
  }  
  #menu li ul li {
    float: none;
    font-size: 12px;
    line-height: 24px;
    margin: 0;
    padding: 0;
    position: relative;
    text-align: left;
    width: 100%;
  }
  #menu li ul li:hover {
    background: none;
    border: medium none;
    margin: 0;
    padding: 0;
  }
  </code></pre>
  <p>I need this to be like:
  <a href="http://gyazo.com/a4ff24a30bda6ed830a9b8975b678247.png" rel="nofollow noreferrer">Result image example</a></p>
  <p>Tried to adding z-index; but it doesn't work for my. Any suggestion would be appriciated.
  Thanks! :)</p>