title: Left, Right and Center Align Child div under Parent Div Container
body: <p>I want to align child Div under my Parent Div based on its class to left, right or Center. </p>
  
  <p>I have done the following, </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>.container{
    border:1px solid;
    padding:1px;
    width:100%;
    margin:1px;
  }
  
  .left-item{
    float:left;
    padding:auto;
    margin:1px;
  }
  
  .center-item{  
     padding:auto;
    margin:1px;
   }
  
  .right-item{
   float:right;
   padding:auto;
    margin:1px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;        
      &lt;button class="left-item"&gt;Left&lt;/button&gt; &lt;button class="center-item"&gt;Center 2&lt;/button&gt; &lt;button class="right-item"&gt;Right&lt;/button&gt; &lt;button class="left-item"&gt;Left&lt;/button&gt; &lt;button class="right-item"&gt;Right&lt;/button&gt; &lt;button class="center-item"&gt;Center 1&lt;/button&gt; &lt;button class="center-item"&gt;Center 3&lt;/button&gt;        
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I am unable to <strong>align</strong> <code>child Divs</code> to center to parent <code>Divs</code>. Can any one help me with this? </p>