vuetify center vertically code example
Example 1: flexbox align center vertically
.Aligner {
display: flex;
align-items: center;
justify-content: center;
}
.Aligner-item {
max-width: 50%;
}
.Aligner-item--top {
align-self: flex-start;
}
.Aligner-item--bottom {
align-self: flex-end;
}
Example 2: v-row center vertically
Vertical - align: start, center, end, baseline, stretch
Horizontal - justify: start, cener, end, space-around, space-between
Vertical Alignment:
<v-row align="start"></v-row> // top
<v-row align="center"></v-row> // middle
<v-row align="end"></v-row> // bottom
<v-row align="stretch"></v-row> // fill height
Horizontal Justification:
<v-row justify="start"></v-row> // left
<v-row justify="center"></v-row> // center
<v-row justify="end"></v-row> // right
<v-row justify="space-around"></v-row> // centered - spaced evenly around
<v-row justify="space-between"></v-row> // not centered - spaced evenly between
Example 3: vuetify row center vertically
<v-row align="center"></v-row>
Example 4: vuetify center horizontally
<v-row justify="center"></v-row>
Example 5: vue vertical center
<v-row align="center">
<!-- content here -->
</v-row>