title: Place list of items in div box
body: <p>I am new to HTML and CSS. I am currently trying to make the list of items (Edit|Delete|Review|Take Test) into my div box but I couldn't figure out why it is always outside of the box.</p>
  
  <p><a href="https://i.stack.imgur.com/rTT9O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rTT9O.png" alt="enter image description here"></a></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>.action-container {
    display: inline-block;
    padding-left: 20px;
    margin-bottom: 20px;
    width: 100%;
    height: 70px;
    line-height: 70px;
    background: white;
    border: 1px solid rgba(74, 74, 74, 0.075);
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.19);
    border-radius: 10px;
    color: #204056;
    text-align: left;
    font-size: 18px;
    font-family: "Roboto", "Lucida Grande", Verdana, Arial, sans-serif;
  }
  
  #menu&gt;li.sub ul {
    position: absolute;
    left: 0px;
    float: right;
  }
  
  #menu li.sub ul li a {
    display: inline;
  }
  
  #menu {
    text-align: right;
  }
  
  li {
    display: inline-block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="action-container"&gt;
    &lt;p&gt;Test 1&lt;/p&gt;
    &lt;ul id="menu"&gt;
      &lt;li class="sub"&gt;&lt;a href="#"&gt;Edit&lt;/a&gt; | &lt;/li&gt;
      &lt;li class="sub"&gt;&lt;a href="#"&gt;Delete&lt;/a&gt; | &lt;/li&gt;
      &lt;li class="sub"&gt;&lt;a href="#"&gt;Review&lt;/a&gt; | &lt;/li&gt;
      &lt;li class="sub"&gt;&lt;a href="#"&gt;Take Test&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Edit: I want Test1 and (Edit|Delete|Review|Take Test) to be on the same line</p>