I'm trying to create a card in Vuetify, within a Nuxt project running on Vue 2, which consists of a background image, and a single button centered both horizontally and vertically.
I've tried using d-flex, as well as v-row and v-col, but in the first case it's centered vertically but not horizontally, and in the second case it's centered horizontally but not vertically.
But as far as I can tell, I've written my code exactly as specified in Vuetify's documentation.
I've tested this on Chrome and Firefox and gotten the same result in each.
Here is my Nuxt page:
<template>
<div>
<v-card >
<v-img
class="d-flex justify-center align-center"
width="600"
height="600"
src="https://cdn.vuetifyjs.com/images/cards/cooking.png"
>
<v-btn
icon
width="300"
height="300"
>
<v-icon color="white" size="300">mdi-emoticon-confused-outline</v-icon>
</v-btn>
</v-img>
</v-card>
<br >
<v-card >
<v-img
width="600"
height="600"
src="https://cdn.vuetifyjs.com/images/cards/cooking.png"
>
<v-container>
<v-row justify="center" align="center">
<v-col align="center">
<v-btn
icon
width="300"
height="300"
>
<v-icon color="white" size="300">mdi-emoticon-confused-outline</v-icon>
</v-btn>
</v-col>
</v-row>
</v-container>
</v-img>
</v-card>
</div>
</template>
I'm aware that I could probably fix this by fiddling with paddings and margins, but I'd rather figure out how to get it to work just by using Vuetify functionality, so that I can use this as a learning experience to learn how to use Vuetify correctly.
Thanks in advance for any help!