title: Left/Right float button inside div
body: <p>How can I make button float only in div area?</p>
  
  <p>Here is my example CSS and HTML.</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>.test {
    width: 60%;
    display: inline;
    overflow: auto;
    white-space: nowrap;
    margin: 0px auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class='test'&gt;
    &lt;div style='float: left;'&gt;
      &lt;button&gt;test&lt;/button&gt;
    &lt;/div&gt;
    &lt;div style='float: right;'&gt;
      &lt;button&gt;test&lt;/button&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want it to be like this.</p>
  
  <p><img src="https://i.stack.imgur.com/huzAe.png" alt="enter image description here"></p>