# Ion-scroll and fixed elements inside

**URL:** <https://forum.ionicframework.com/t/ion-scroll-and-fixed-elements-inside/116283>\
**Category:** ionic-v3\
**Created:** [December 23, 2017, 5:00pm UTC](https://forum.ionicframework.com/t/ion-scroll-and-fixed-elements-inside/116283 "2017-12-23T17:00:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LucaSargenti](https://avatars.discourse-cdn.com/v4/letter/l/46a35a/32.png) [@LucaSargenti](https://forum.ionicframework.com/u/LucaSargenti)\
**Post date:** [December 23, 2017, 5:00pm UTC](https://forum.ionicframework.com/t/ion-scroll-and-fixed-elements-inside/116283/1 "2017-12-23T17:00:24Z")

</div>

HI! I have this template for a component.

I have to fix the first row and the first column.  
The application is a planning and I have to keep still the first column that is composed of the rooms and the first row that are the days.

I can not just lock the position because the first column can scroll vertically and the first row horizontally.

Any help?

````auto
<ion-scroll #calendar id="calendar" scrollX="true" scrollY="true" class="item" (ionScroll)="scrollHandler($event)">
    <div class="calendarComponent">
        <ion-row class="calendarDaysRow" nowrap>
            <ion-col class = "day" *ngFor="let day of calendarDays">
                {{day.toDateString().split(" ")[0] + " " + day.toDateString().split(" ")[1] + " " + day.toDateString().split(" ")[2]}}
            </ion-col>
        </ion-row>
            
        <ion-row class="calendarRow" *ngFor="let room of roomsList" nowrap>
            <ion-col class="room">{{room.getName()}}</ion-col>
            <ion-col class="dayInfo" *ngFor="let day of calendarDays" >
                <calendarPageComponentElement [room]="room" [day]="day" [reservations]="getRoomDayReservation(day,room)"></calendarPageComponentElement>
            </ion-col>
        </ion-row>
    </div>
</ion-scroll>```
````

---

<div class="post-metadata">

**Author:** ![DijanaPavlovic](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dijanapavlovic/32/122256_2.png) [@DijanaPavlovic](https://forum.ionicframework.com/u/DijanaPavlovic)\
**Post date:** [November 17, 2018, 12:27am UTC](https://forum.ionicframework.com/t/ion-scroll-and-fixed-elements-inside/116283/2 "2018-11-17T00:27:53Z")

</div>

Hey, did you fix this? I have similar problem. I have to make festival timetable, where some rows should stay fixed and some should scroll horizontally(but all of them should scroll vertically). I can not make some rows to not scroll with the rest of ion-scroll content.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:57pm UTC](https://forum.ionicframework.com/t/ion-scroll-and-fixed-elements-inside/116283/3 "2021-07-19T21:57:46Z")

</div>

Closed on July 19, 2021, 9:57pm UTC


