I'm facing an issue where the method I understand in Bootstrap4 isn't working the same way in Bootstrap-vue.
Here is the code snippet from my Homepage.vue file:
<template>
<div class="forVue">
<div>
<b-navbar toggleable="sm" type="dark" variant="dark">
<b-navbar-toggle target="nav-collapse"></b-navbar-toggle>
<b-collapse id="nav-collapse" is-nav>
<b-navbar-nav class="mx-auto">
<b-nav-item href="/home">Home</b-nav-item>
<b-nav-item href="/home">Services</b-nav-item>
<b-nav-item href="/home">Contact</b-nav-item>
<b-nav-item href="/about">About Us</b-nav-item>
</b-navbar-nav>
</b-collapse>
</b-navbar>
</div>
</div>
</template>
This is the CSS within style tags in the same file:
<style>
.nav-item {
color: red !important;
}
</style>
The above styling doesn't seem to work as the color remains default. Furthermore, I'm having trouble figuring out how to change the entire navbar's color without using the !important tag. The following code works but I want to avoid using !important:
.navbar {
background-color: red !important;
}
Any suggestions on how to achieve this without relying on the !important tag?