title: Vertically Align Center Flexbox
body: <p>I am trying to align a bunch of logos that are different heights vertically center. They are inside a list which is also centered horizontally.</p>
  
  <p><a href="https://jsfiddle.net/mtcruere/8/" rel="nofollow noreferrer">https://jsfiddle.net/mtcruere/8/</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>.container {
    width: 800px;
    margin: 20px auto;
  }
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  li {
    display: inline-block;
    margin-left: 15px;
    margin-right: 15px;
  }
  li &gt; div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 105px;
  }
  img {
    max-width: 100%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;div&gt;&lt;img src="http://placehold.it/142x39"&gt;&lt;/div&gt;&lt;/li&gt;
      &lt;li&gt;&lt;div&gt;&lt;img src="http://placehold.it/181x87"&gt;&lt;/div&gt;&lt;/li&gt;
      &lt;li&gt;&lt;div&gt;&lt;img src="http://placehold.it/157x45"&gt;&lt;/div&gt;&lt;/li&gt;
      &lt;li&gt;&lt;div&gt;&lt;img src="http://placehold.it/161x35"&gt;&lt;/div&gt;&lt;/li&gt;
      &lt;li&gt;&lt;div&gt;&lt;img src="http://placehold.it/162x75"&gt;&lt;/div&gt;&lt;/li&gt;
      &lt;li&gt;&lt;div&gt;&lt;img src="http://placehold.it/186x85"&gt;&lt;/div&gt;&lt;/li&gt;
      &lt;li&gt;&lt;div&gt;&lt;img src="http://placehold.it/140x52"&gt;&lt;/div&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any ideas what I can do to fix this?</p>