title: How do I create a horizontal scrolling cards carousel?
body: <p>I am having difficulty creating this. The cards just wrap down to a new line when the screen is resized. I have tried to set the overflow to hidden but that has not helped </p>
  
  <p><a href="https://i.stack.imgur.com/QKgLJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QKgLJ.png" alt="Scrolling Cards"></a></p>
  
  <p>This is what I have so far:</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>.showcase-section{
    height:40vh;
    text-align:center;
    padding:2rem;
  }
  .showcase__carousel--container{
    padding:2rem;
    height:30rem;
    width:65%;
    margin-left:auto;
    margin-right:auto;
  
  }
  .showcase__carousel--content{
    overflow:hidden;
  }
  .showcase__carousel--item{
    height:15rem;
    width:12rem;
    background-color:whitesmoke;
    border-radius:5px;
    box-shadow:0 0 3px rgba(0,0,0,.5);
    margin-left:2rem;
    margin-right:2rem;
    display:inline-block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section class="showcase-section"&gt;
  &lt;h2 style="font-size:3rem;"&gt;Showcase&lt;/h2&gt;
  &lt;div class="showcase__carousel--container"&gt;
    &lt;i class="fa fa-chevron-left" style="font-size:10rem; display:inline-block; float:left;"&gt;&lt;/i&gt;
    &lt;div class="showcase__carousel--content"&gt;
      &lt;div class="showcase__carousel--item"&gt;
      ..
      &lt;/div&gt;
      &lt;div class="showcase__carousel--item"&gt;
      ..
      &lt;/div&gt;
      &lt;div class="showcase__carousel--item"&gt;
      ..
      &lt;/div&gt;
      &lt;div class="showcase__carousel--item"&gt;
      ..
      &lt;/div&gt;
  
    &lt;i class="fa fa-chevron-right" style="font-size:10rem; display:inline-block; float:right;"&gt;&lt;/i&gt;
    &lt;/div&gt;
    &lt;/div&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>