title: List items position absolute in single line
body: <p>Hello I am trying to create menu with absolute position CSS rule for each list item. <code>display: inline-block</code> for parent doesn't work. Here's an example of markup.</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>.menu-items{
  }
  .main-menu{
    position: relative;
    list-style:none;
  }
  .main-menu li {
    position: absolute;
    float:left;
  }
  .main-menu li a{
    font-size: 12px;
    color: rgba(1, 1, 1, 1);
  }
  .main-menu li a:hover{
    font-size: 21px;
    color: rgba(1, 1, 1, 1);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="row"&gt;
    &lt;div class="menu-items"&gt;
      &lt;ul class="main-menu"&gt;
        &lt;li&gt;&lt;a href="index.html"&gt;index&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="shop.html"&gt;shop&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="about.html"&gt;about&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="projects.html"&gt;projects&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="contacts.html"&gt;contacts&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt; 
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>