I want to implement a horizontal scroll bar for card classes as shown in this example. I have tried with overflow-x:scroll but didn't get lucky. Can anyone please suggest how can I implement a scroll bar such that the cards flow horizontally ?
Thanks
.card {
float: left;
width: 33.333%;
padding: .75rem;
margin-bottom: 2rem;
border: 0;
}
.card > img {
margin-bottom: .75rem;
}
.card-text {
font-size: 85%;
}
<div class="container">
<div class="row">
<div class="card">
<img src="http://placehold.it/200x150">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
<div class="card">
<img src="http://placehold.it/200x150">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
<div class="card">
<img src="http://placehold.it/200x150">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
<div class="card">
<img src="http://placehold.it/200x150">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</div>