Question : ionic vertical align center
Answered by : muhammad-bilal-04086u17yk4d
//Works with Ionic 4,5,6
//CSS
ion-grid{ height: 100%;
}
ion-row{ display: flex; align-items: center; justify-content: center; height: 100%;
}
//HTML
<ion-content> <ion-grid class="ion-text-center"> <ion-row> <ion-col size="12"> I am the Center of the World </ion-col> </ion-row> </ion-grid>
</ion-content>
Source : | Last Update : Wed, 02 Feb 22