title: CSS Dropdown menu (to the right)
body: <p>I am trying to create a sub menu that floats out to the right. However, I have hit a brick wall and can only get it to float inline. </p>
  
  <p><a href="http://jsfiddle.net/jspring/yD9N4/" rel="noreferrer">http://jsfiddle.net/jspring/yD9N4/</a></p>
  
  <p>You can see here (although it is a bit wider than normal) that the sub menu just displays inside the parent list item. If someone could help me to get it floating out to the right that would be great!</p>
  
  <pre><code>&lt;ul class="cl-menu"&gt;
      &lt;li&gt;Link 1
          &lt;ul&gt;
              &lt;li&gt;&lt;a href="#"&gt;Sub Link 1&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Sub Link 2&lt;/a&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Link 2
          &lt;ul&gt;
              &lt;li&gt;&lt;a href="#"&gt;Sub Link 1&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Sub Link 2&lt;/a&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  
  .cl-menu{
      list-style:none outside none;
      display:inline-table;
      position:relative;
      width:100%;
  }
  .cl-menu li{
      list-style:none outside none;
      border-bottom:1px solid #cccccc;
      padding:5px 1px;
      text-align:center;  
  
  }
  .cl-menu &gt; li:hover{
  
      /*background-color:#303030;*/
      background-color:#66819C;
      color:#FFF;
      font-weight:bold;
      text-decoration:underline;
      opacity:1;
  }
  
  .cl-menu li ul{
      display:none;
  }
  
  .cl-menu li:hover ul{
      display:block;
      opacity:0.8;
      background-color:#FFF;
      margin-top:4px;
      font-weight:normal !important;
  }
  
  .cl-menu li ul li{
      border-bottom:1px solid #cccccc !important;
      border-top:none !important;
      border-left:none !important;
      border-right:none !important;
  }
  
  .cl-menu li ul li a{
      color:#000;
      text-decoration:none;
  }
  
  .cl-menu li ul li a:hover{
      color:#390;
      text-decoration:underline;
  }
  
  .cl-menu ul:after{
      content:"";
      clear:both;
      display:block;
  }
  </code></pre>