Hey guys
I’m trying to create a horizontal scrollable collection of cards, but I can’t seem to make it work.
All the cards are underneath each other instead of side by side.
My guess is that some CSS-magic is needed, but I just can’t figure it out.
<ion-content padding>
<h2>Adventure</h2>
<ion-scroll scrollX="true" style="height: 500px" direction="x">
<ion-card>
<ion-card-content>
<ion-card-title>
Nine Inch Nails
</ion-card-title>
<p>
The most popular industrial group ever, and largely
responsible for bringing the music to a mass audience.
</p>
</ion-card-content>
</ion-card>
<ion-card>
<ion-card-content>
<ion-card-title>
Nine Inch Nails Live
</ion-card-title>
<p>
The most popular industrial group ever, and largely
responsible for bringing the music to a mass audience.
</p>
</ion-card-content>
</ion-card>
<ion-card>
<ion-card-content>
<ion-card-title>
Nine Inch Nails Live
</ion-card-title>
<p>
The most popular industrial group ever, and largely
responsible for bringing the music to a mass audience.
</p>
</ion-card-content>
</ion-card>
<ion-card>
<ion-card-content>
<ion-card-title>
Nine Inch Nails Live
</ion-card-title>
<p>
The most popular industrial group ever, and largely
responsible for bringing the music to a mass audience.
</p>
</ion-card-content>
</ion-card>
</ion-scroll>
</ion-content>
SCSS:
ion-card {
width: 60%;
}
Any help is appreciated!