
Ionic 5 – ion-row vertical center
Table of Contents
Code Snippet
// your.scss
/* VERTICAL ROW CENTER */
ion-grid {
height: 100%;
}
ion-row {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
// if you have to adjust your content use this code below
.stat-badge {
top: -10px;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
Thats it so far have fun