How can make my navbar 100% of the browser window? I'm using vuejs.
This is my navbar component:
<div class="navbar">
<div class="navbar-nav">
<ul>
<li><a href="">Home</a></li>
<li><a href="">About</a></li>
</ul>
</div>
</div>
<style scoped>
.navbar {
width: 20%;
height: 100%;
background-color: greenyellow;
}
.navbar-nav {
display: flex;
flex-direction: column;
}
.check {
justify-self: flex-end;
}
</style>
And this is my App.vue file:
<template>
<div>
<NavBar/>
</div>
</template>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
width: 100%;
height: 100%;
background-color: grey;
}
body {
width: 100%;
height: 100%;
}
</style>