# Scroll in card instead of content

**URL:** <https://forum.ionicframework.com/t/scroll-in-card-instead-of-content/84242>\
**Category:** ionic-v3\
**Created:** [March 25, 2017, 10:40pm UTC](https://forum.ionicframework.com/t/scroll-in-card-instead-of-content/84242 "2017-03-25T22:40:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zantafio](https://avatars.discourse-cdn.com/v4/letter/z/da6949/32.png) [@zantafio](https://forum.ionicframework.com/u/zantafio)\
**Post date:** [March 25, 2017, 10:40pm UTC](https://forum.ionicframework.com/t/scroll-in-card-instead-of-content/84242/1 "2017-03-25T22:40:20Z")

</div>

Hi,

i would like to create a page with two cards that contain each a scrollable list but I’d like to have them both visible without scrolling at 50% available height for each.  
If I do it like so:

```
<ion-content padding>
<ion-card>
	<ion-card-content>
		<ion-title>{{ title0 }}</ion-title>	
		<ion-list>
			<ion-item *ngFor="let x of scores0">
				<ion-label>{{ x.name }}</ion-label>
				<ion-label>{{ x.score }}</ion-label>
				
			</ion-item>
	  	</ion-list>
	</ion-card-content>
</ion-card>

<ion-card>
	<ion-card-content>
		<ion-title>{{ title1 }}</ion-title>	
		<ion-list>
			<ion-item *ngFor="let x of scores1">
				<ion-label>{{ x.name }}</ion-label>
				<ion-label>{{ x.score }}</ion-label>
			</ion-item>
	  	</ion-list>
	</ion-card-content>
</ion-card>
</ion-content>

```

the whole page scrolls.  
So how can I get just the lists to scroll?

thanks a lot!

---

<div class="post-metadata">

**Author:** ![williamdelvalle](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/williamdelvalle/32/107869_2.png) [@williamdelvalle](https://forum.ionicframework.com/u/williamdelvalle)\
**Post date:** [March 26, 2017, 5:33am UTC](https://forum.ionicframework.com/t/scroll-in-card-instead-of-content/84242/2 "2017-03-26T05:33:52Z")

</div>

@zantafio Have you tried using ion-scroll inside the cards? 👍

[http://ionicframework.com/docs/v2/api/components/scroll/Scroll/](http://ionicframework.com/docs/v2/api/components/scroll/Scroll/)

---

<div class="post-metadata">

**Author:** ![zantafio](https://avatars.discourse-cdn.com/v4/letter/z/da6949/32.png) [@zantafio](https://forum.ionicframework.com/u/zantafio)\
**Post date:** [March 26, 2017, 7:31am UTC](https://forum.ionicframework.com/t/scroll-in-card-instead-of-content/84242/3 "2017-03-26T07:31:56Z")

</div>

i did, like so:

```
    <ion-card>
	<ion-card-content>
		<ion-title>{{ title0 }}</ion-title>	
		<ion-scroll scrollY="true"> 
			<ion-list>
				<ion-item *ngFor="let x of scores0">
					<ion-label>{{ x.name }}</ion-label>
					<ion-label>{{ x.score }}</ion-label>
				</ion-item>
	  		</ion-list>
		</ion-scroll> 
	</ion-card-content>
</ion-card>

```

but now the lists disappear completely.

---

<div class="post-metadata">

**Author:** ![williamdelvalle](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/williamdelvalle/32/107869_2.png) [@williamdelvalle](https://forum.ionicframework.com/u/williamdelvalle)\
**Post date:** [March 26, 2017, 4:18pm UTC](https://forum.ionicframework.com/t/scroll-in-card-instead-of-content/84242/4 "2017-03-26T16:18:44Z")

</div>

@zantafio In the .scss file you have to set a fixed height for the scroll to work.

ion-scroll {  
height: 100px;  
}

---

<div class="post-metadata">

**Author:** ![maninak](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/maninak/32/104399_2.png) [@maninak](https://forum.ionicframework.com/u/maninak)\
**Post date:** [April 2, 2017, 2:36am UTC](https://forum.ionicframework.com/t/scroll-in-card-instead-of-content/84242/5 "2017-04-02T02:36:17Z")

</div>

@zantafio Do keep in mind though, vertical scrolling on mobile devices is considered particularly bad practice. On desktops as well, epecially if the scrollable areas width is not minimal. The problem is it hampers user experience since the intuitive core gesture of vertical scrolling is getting hijacked by an embedded vertical scrolling area by mistake.

If you are using vertical scrolling, I advise you to reconsider if your design could do with horizontal scrolling instead (which is fine).

---

<div class="post-metadata">

**Author:** ![zantafio](https://avatars.discourse-cdn.com/v4/letter/z/da6949/32.png) [@zantafio](https://forum.ionicframework.com/u/zantafio)\
**Post date:** [April 2, 2017, 4:40pm UTC](https://forum.ionicframework.com/t/scroll-in-card-instead-of-content/84242/6 "2017-04-02T16:40:15Z")

</div>

thank you. it was a hard time to convince the client. but now everything is ok and i dont need scroll within scroll anymore … 🙂
