I'm making an app with Vue and Laravel using Bulma as my CSS framework. I want a footer that stays at the bottom of the page even when the content doesn't 'push' it there. Currently I have this in my custom CSS:
body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
#app{
flex:1;
}
#app
is the div in my default Blade template into which my app is injected:
<body>
<div id="app">
<index></index>
</div>
</body>
And this is my main Vue component in which the routed components are injected
<template>
<div>
<Navigation/>
<router-view :key="$route.fullPath"></router-view>
<footer class="footer">Test</footer>
</div>
</template>
This works fine when there's enough content to push the footer to or beyond the bottom. But if there's not there's a large gap at the bottom of the screen and the footer is pushed right up to the bottom of the content. What gives?