Hey there, I'm having trouble changing the background color and opacity of a navbar using rgba. Can anyone provide some guidance on this issue?
#navbarr {
background-color: rgba(0, 0, 0, 0.8);
}
<div class="navbar navbar-dark bg-dark fixed-top navbar-expand-md" id='navbarr' role="navigation">
<div class="container">
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only" id="asupr">Toggle navigation</span>
☰</button>
<a class="navbar-brand" href="index.html">Portfolio</a>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav ml-auto">
<li class="active nav-item"><a href="index.html" class="nav-link">Accueil</a>
</li>
<li class="nav-item"><a href="works.html" class="smoothscroll nav-link">Travaux</a>
</li>
<li class="nav-item"><a href="contact.html" class="smoothscroll nav-link">Contact</a>
</li>
</ul>
</div>
</div>
</div>