title: Arranging divs in parallel in a sub menu
body: <p>I am trying to create a menu with a ul list as main menu and a collection of divs as sub menu, the HTML and CSS is as follows,</p>
  
  <hr>
  
  <pre><code>&lt;ul&gt;
      &lt;li&gt;&lt;a&gt;AAAAAA&lt;/a&gt;
          &lt;div class="m-div group"&gt;
              &lt;div class="child"&gt;
                  &lt;a&gt;ITEM One&lt;/a&gt;&lt;br /&gt;
                  &lt;a&gt;ITEM One&lt;/a&gt;&lt;br /&gt;
                  &lt;a&gt;ITEM One&lt;/a&gt;&lt;br /&gt;
              &lt;/div&gt;
              &lt;div class="child"&gt;
                  &lt;a&gt;ITEM Two&lt;/a&gt;&lt;br /&gt;
                  &lt;a&gt;ITEM Two&lt;/a&gt;&lt;br /&gt;
                  &lt;a&gt;ITEM Two&lt;/a&gt;&lt;br /&gt;
              &lt;/div&gt;
              &lt;div class="child"&gt;
                  &lt;a&gt;ITEM Three&lt;/a&gt;&lt;br /&gt;
                  &lt;a&gt;ITEM Three&lt;/a&gt;&lt;br /&gt;
                  &lt;a&gt;ITEM Three&lt;/a&gt;&lt;br /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;a&gt;BBBBBBB&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a&gt;CCCCCCC&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a&gt;DDDDDDD&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>* {
          padding: 0px;
          margin: 0px;
      }
      ul {
          position: relative;
          float: left;
      }
  
          ul li {
              position: relative;
              display: inline-block;
              float: left;
              list-style: none;
              margin-left: 10px;
          }
  
      .m-div {
          background-color: lightgray;
          float: left;
          position: absolute;
      }
  
      .child {
          float: left;
          width: 150px;
      }
  </code></pre>
  
  <hr>
  
  <p>But this code renders the menu as,</p>
  
  <p><img src="https://i.stack.imgur.com/pmDcp.png" alt="enter image description here"></p>
  
  <p>I need the sub menu to appear side by side as,</p>
  
  <p><img src="https://i.stack.imgur.com/zoHpR.png" alt="enter image description here"></p>
  
  <p>How can i resolve this issue?</p>