css horizontal scroll cards example code

css horizontal scroll cards example code

css horizontal scroll cards example

css horizontal scroll cards example in css


.row{
  align-items: stretch;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}
.card {
  /*float: left;*/
  max-width: 33.333%;
  padding: .75rem;
  margin-bottom: 2rem;
  border: 0;
  flex-basis: 33.333%;
  flex-grow: 0;
  flex-shrink: 0;
}

.card > img { margin-bottom: .75rem; width: 100%; }

.card-text { font-size: 85%; }

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

By Manish Salunke In css -

Tags:

css

Sponsors

themeforest
pluralsight
Invest in you. Online courses as low as $11.99