Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why align-end does not work in vuetify

Tags:

vuetify.js

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

like image 695
Roy Avatar asked Sep 05 '17 22:09

Roy


People also ask

What is D Flex Vuetify?

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.

Does Vuetify work with vue3?

The current version of Vuetify does not support Vue 3.


1 Answers

Vuetify's grid uses flexbox.

  • align-* operates on the vertical axis
  • you want to use justify-* for the child to translate it horizontally
  • align-* 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.

like image 147
Kael Watts-Deuchar Avatar answered Sep 28 '22 03:09

Kael Watts-Deuchar