title: Carousel Items not appearing in horizontal in Bootstrap
body: <p>I trying to create a multi column bootstrap carousel, but all items are appearing in vertical, PFB my html code:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
      &lt;!-- Required meta tags --&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"&gt;
  
      &lt;!-- Bootstrap CSS --&gt;
      &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
          crossorigin="anonymous"&gt;
  
      &lt;title&gt;Hello, world!&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;h1&gt;Hello, world!&lt;/h1&gt;
      &lt;div id="myCarousel" class="carousel slide" data-ride="carousel" data-type="multi" data-interval="2000" style="border: 2px black; max-width: 400px; max-height: 400px;"&gt;
  
          &lt;div class="carousel-inner"&gt;
              &lt;div class="carousel-item active"&gt;
                  &lt;div class="col-md-4 col-sm-6 col-xs-12"&gt;
                      &lt;img class="d-block w-100" src="http://fresh2door.ie/wp-content/uploads/2017/06/Fresh2Door-Mango-Ready-To-Eat.jpg"
                          alt="First slide"&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="carousel-item"&gt;
                  &lt;div class="col-md-4 col-sm-6 col-xs-12"&gt;
                      &lt;img class="d-block w-100" src="http://sportsvape.net/wp-content/uploads/2014/09/Mango.jpg" alt="Second slide"&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="carousel-item"&gt;
                  &lt;div class="col-md-4 col-sm-6 col-xs-12"&gt;
                      &lt;img class="d-block w-100" src="https://jessicainthekitchen.com/wp-content/uploads/2017/05/Mango-Basil-Salsa-vegan-easy-6-453x680.jpg"
                          alt="Third slide"&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="carousel-item"&gt;
                      &lt;div class="col-md-4 col-sm-6 col-xs-12"&gt;
                          &lt;img class="d-block w-100" src="http://fresh2door.ie/wp-content/uploads/2017/06/Fresh2Door-Mango-Ready-To-Eat.jpg"
                              alt="First slide"&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="carousel-item"&gt;
                      &lt;div class="col-md-4 col-sm-6 col-xs-12"&gt;
                          &lt;img class="d-block w-100" src="http://sportsvape.net/wp-content/uploads/2014/09/Mango.jpg" alt="Second slide"&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="carousel-item"&gt;
                      &lt;div class="col-md-4 col-sm-6 col-xs-12"&gt;
                          &lt;img class="d-block w-100" src="https://jessicainthekitchen.com/wp-content/uploads/2017/05/Mango-Basil-Salsa-vegan-easy-6-453x680.jpg"
                              alt="Third slide"&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="carousel-item"&gt;
                          &lt;div class="col-md-4 col-sm-6 col-xs-12"&gt;
                              &lt;img class="d-block w-100" src="http://fresh2door.ie/wp-content/uploads/2017/06/Fresh2Door-Mango-Ready-To-Eat.jpg"
                                  alt="First slide"&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="carousel-item"&gt;
                          &lt;div class="col-md-4 col-sm-6 col-xs-12"&gt;
                              &lt;img class="d-block w-100" src="http://sportsvape.net/wp-content/uploads/2014/09/Mango.jpg" alt="Second slide"&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
          &lt;/div&gt;
          &lt;a class="carousel-control-prev" href="#myCarousel" role="button" data-slide="prev"&gt;
              &lt;span class="carousel-control-prev-icon" aria-hidden="true"&gt;&lt;/span&gt;
              &lt;span class="sr-only"&gt;Previous&lt;/span&gt;
          &lt;/a&gt;
          &lt;a class="carousel-control-next" href="#myCarousel" role="button" data-slide="next"&gt;
              &lt;span class="carousel-control-next-icon" aria-hidden="true"&gt;&lt;/span&gt;
              &lt;span class="sr-only"&gt;Next&lt;/span&gt;
          &lt;/a&gt;
      &lt;/div&gt;
  
  
      &lt;!-- Optional JavaScript --&gt;
      &lt;!-- jQuery first, then Popper.js, then Bootstrap JS --&gt;
      &lt;script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
          crossorigin="anonymous"&gt;&lt;/script&gt;
      &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
          crossorigin="anonymous"&gt;&lt;/script&gt;
      &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
          crossorigin="anonymous"&gt;&lt;/script&gt;
  
      &lt;script&gt;
  
          $('.carousel[data-type="multi"] .carousel-item').each(function () {
              var next = $(this).next();
              if (!next.length) {
                  next = $(this).siblings(':first');
              }
              next.children(':first-child').clone().appendTo($(this));
  
              for (var i = 0; i &lt; 1; i++) {
                  next = next.next();
                  if (!next.length) {
                      next = $(this).siblings(':first');
                  }
  
                  next.children(':first-child').clone().appendTo($(this));
              }
          });
  
      &lt;/script&gt;
  
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/plsTW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/plsTW.png" alt="enter image description here"></a></p>
  
  <p><strong>EDIT:</strong>
  <a href="https://i.stack.imgur.com/QMqzm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QMqzm.png" alt="enter image description here"></a></p>