title: Center box with inline-block items
body: <p>I have a box with items which have a display: inline-block. In the case that items in the box don't fill the whole line, I would need to align the content in the middle, but items to the left. </p>
  
  <p>I have tried to set up the whole content in inline-block, but this works only if there is just one line of items, not two or more lines. Also, I need it to be responsive, so no fixed indent can be used.</p>
  
  <p><strong>Screen:</strong><a href="https://i.stack.imgur.com/imGqQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/imGqQ.jpg" alt="enter image description here"></a></p>
  
  <p><strong>Code:</strong></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>.booking-time{
    font-size: 0;
    line-height: 0;
    border: 1px solid red;
    padding: 5px;
    text-align: center;
  }
  .inner{
    display: inline-block;
    text-align: left;
  }
  .btn{
    width: 100px;
    background: #3578d5;
    color: #fff;
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    line-height: 20px;
    padding: 8px 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s, color 0.3s, background 0.3s;
    margin: 0 5px 5px 0;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="booking-time"&gt;
    &lt;div class="inner"&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        8:00 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        8:15 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        8:30 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        8:45 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        9:00 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        9:15 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        9:30 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        9:45 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        10:00 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        10:15 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        10:30 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        10:45 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        11:00 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        11:15 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        11:30 AM
      &lt;/button&gt;
      &lt;button type="button" class="btn btn-flat"&gt;
        11:45 AM
      &lt;/button&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>