title: How to center the images in the Owl Carousel
body: <p>My Owl Carousel contains pictures of different width and height. How do I align them in the middle - both horizontally and vertically?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$("#owl-example").owlCarousel({
    navigation: true
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.css"&gt;
  &lt;link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.theme.min.css"&gt;
  
  &lt;div id="owl-example" class="owl-carousel"&gt;
    &lt;div&gt;&lt;img src="https://via.placeholder.com/120x120/69c/fff/" alt=""&gt;&lt;/div&gt;
    &lt;div&gt;&lt;img src="https://via.placeholder.com/200x200/c69/fff/" alt=""&gt;&lt;/div&gt;
    &lt;div&gt;&lt;img src="https://via.placeholder.com/160x160/9c6/fff/" alt=""&gt;&lt;/div&gt;
    &lt;div&gt;&lt;img src="https://via.placeholder.com/240x240/fc6/fff/" alt=""&gt;&lt;/div&gt;
    &lt;div&gt;&lt;img src="https://via.placeholder.com/160x160/9c6/fff/" alt=""&gt;&lt;/div&gt;
    &lt;div&gt;&lt;img src="https://via.placeholder.com/200x200/c69/fff/" alt=""&gt;&lt;/div&gt;
    &lt;div&gt;&lt;img src="https://via.placeholder.com/120x120/69c/fff/" alt=""&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;script src="//code.jquery.com/jquery-1.12.4.min.js"&gt;&lt;/script&gt;
  &lt;script src="//cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>