title: Flexbox, make all images equal width to fit inside a list
body: <p>Using WordPress and advanced custom fields, the user add or remove up to 10 images into a block. The images sit inline and must stay on one line.</p>
  
  <p>The user is providing all sorts of width and height images and I can't rely on them to edit them carefully. These are client logos.</p>
  
  <p>My aim is that all of the images in the list are auto resized so they all fit into the container but keep aspect ratio.</p>
  
  <p>Any help?</p>
  
  <p>Currently markup and CSS:</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>.logo-list {
    background-color: white;
    padding: 20px;
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="logo-list"&gt;
    &lt;img class="logo-list-image" src="SOURCE" alt=""&gt;
    &lt;img class="logo-list-image" src="SOURCE" alt=""&gt;
    &lt;img class="logo-list-image" src="SOURCE" alt=""&gt;
    &lt;img class="logo-list-image" src="SOURCE" alt=""&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsfiddle.net/6oc2r52n/4/" rel="nofollow noreferrer">JSFiddle</a></p>