I use vuetify layout, and I wanna make button at right side, but I found align-end
which is vuetify property does not work, I use offset-xs9
to make button right side, but the button is being center in v-flex
, how to make it on end ? help thanks
code like:
<div id="app">
<v-app id="inspire">
<v-layout row wrap align-end>
<v-flex xs3 offset-xs9 align-end>
<div>
<v-btn primary dark>Normal</v-btn>
</div>
</v-flex>
</v-layout>
</v-app>
</div>
and online codepen
Vuetify Flexbox ContainerApplying the d-flex helper class to an element sets its display to flex , which turns it into a flexbox container transforming its direct children into flex items. As we'll see later on, we can customize the interaction of these child elements with additional flex property utilities.
The current version of Vuetify does not support Vue 3.
Vuetify's grid uses flexbox.
align-*
operates on the vertical axisjustify-*
for the child to translate it horizontallyalign-*
and justify-*
only work on flex containers, so you can either use a v-layout
instead of the v-flex
, or just use both attributes on the same v-layout
Here is a fixed pen for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With