title: How to Horizontally Scroll Images In Single Line
body: <p>I am trying to create a sort of basic carousel of images. My question is: how can I get all my slides to display in one line and get them to scroll horizontally instead of vertically?</p>
  
  <p>Here is an example: <a href="http://jsfiddle.net/3f7fcspL/" rel="noreferrer">http://jsfiddle.net/3f7fcspL/</a></p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;div id="carousel"&gt;
      &lt;div class="slide"&gt;
          &lt;img src="http://placehold.it/300x150"/&gt;
      &lt;/div&gt;
      &lt;div class="slide"&gt;
          &lt;img src="http://placehold.it/300x150"/&gt;
      &lt;/div&gt;
      &lt;div class="slide"&gt;
          &lt;img src="http://placehold.it/300x150"/&gt;
      &lt;/div&gt;
      &lt;div class="slide"&gt;
          &lt;img src="http://placehold.it/300x150"/&gt;
      &lt;/div&gt;
      &lt;div class="slide"&gt;
          &lt;img src="http://placehold.it/300x150"/&gt;
      &lt;/div&gt;
      &lt;div class="slide"&gt;
          &lt;img src="http://placehold.it/300x150"/&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>CSS:</strong></p>
  
  <pre><code>#carousel {
      width: 100%;
      height: 150px;
      background-color: #ff0000;
      overflow: auto;
  }
  
  #carousel .slide {
      display: inline-block;
  }
  </code></pre>