# Fit fixed number of list items onto screen

**URL:** <https://forum.ionicframework.com/t/fit-fixed-number-of-list-items-onto-screen/16624>\
**Category:** ionic-v1\
**Created:** [January 29, 2015, 6:39pm UTC](https://forum.ionicframework.com/t/fit-fixed-number-of-list-items-onto-screen/16624 "2015-01-29T18:39:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lornakelly88](https://avatars.discourse-cdn.com/v4/letter/l/c67d28/32.png) [@lornakelly88](https://forum.ionicframework.com/u/lornakelly88)\
**Post date:** [January 29, 2015, 6:39pm UTC](https://forum.ionicframework.com/t/fit-fixed-number-of-list-items-onto-screen/16624/1 "2015-01-29T18:39:28Z")

</div>

I am trying to have a fixed number of list items on one screen - so I want 8 items to fit nicely on a screen no matter what screen size.

```
 <ion-content class="has-header" padding="true">
    <ion-list class="myList" data-ng-controller="myController">
      <ion-item data-ng-repeat="item in items" >
      {{item.name | uppercase}}
      </ion-item>
    </ion-list>
  </ion-content> 

```

So I want the height of the rows to scale so there is no white space at the end of the screen. Is this possible?

I tried to set the height of ion-content to 100% and then try to set the height of ion-item to 20% nothing happens

---

<div class="post-metadata">

**Author:** ![ib\_romz](https://avatars.discourse-cdn.com/v4/letter/i/34f0e0/32.png) [@ib\_romz](https://forum.ionicframework.com/u/ib_romz)\
**Post date:** [September 9, 2016, 12:00am UTC](https://forum.ionicframework.com/t/fit-fixed-number-of-list-items-onto-screen/16624/2 "2016-09-09T00:00:22Z")

</div>

Hi, have you found a solution for this yet?  
Ionic v1 or v2…

---

<div class="post-metadata">

**Author:** ![anicacute09](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/anicacute09/32/113162_2.png) [@anicacute09](https://forum.ionicframework.com/u/anicacute09)\
**Post date:** [September 9, 2016, 2:59am UTC](https://forum.ionicframework.com/t/fit-fixed-number-of-list-items-onto-screen/16624/3 "2016-09-09T02:59:38Z")

</div>

maybe your padding in the ion content mess it up
