I am new to Nuxt Js and having trouble putting the background behind the navbar.
Nav.vue
<style scoped>
.padding {
padding: 5px;
background-color: #082F4D
}
.navbar {
position: absolute;
overflow: hidden;
}
.navbar a {
float: left;
}
</style>
index.vue
<div class="container">
<FirstPageFirstSection />
</div>
...
<style>
.container {
margin: 0 auto;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
</style>
FirstPageFirstSection.vue
<style scoped>
.Hero {
background-image: url("~/assets/logo/xx.jpeg");
min-height:300px;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
display: flex;
align-items: flex-start;
}
</style>