In my Nuxt.js
project with Vuetify.js
, I am trying to apply a background image to the entire content section:
<v-content>
<v-img
src="https://picsum.photos/id/11/500/300"
>
<v-container justify-center fill-height>
<v-row justify="center" align="center">
<v-col cols="12">
<nuxt />
</v-col>
</v-row>
</v-container>
</v-img>
</v-content>
However, I am facing an issue where the content is not vertically centered because the image takes up the full height of the window, causing me to scroll down to view the content.
Is there a way to adjust the image's height to match the viewport's height so that the content appears centered vertically without requiring scrolling due to the image?
If the page's content is lengthy, I would like to be able to scroll down while still having the image as the background.
Check out the basic demo code on Github if you have some time to explore it.