I'm currently working on a responsive navbar design and I want it to appear transparent over a background image. However, my front-end knowledge is limited as I've only been learning for a week. Can anyone advise me on how to remove the white bar and position my navbar on top of the image? I'm aiming for a similar look to this:
#background{
width: 100%;
height: 100vh;
background: url(https://image.freepik.com/fotos-gratis/pranchas-de-madeira-com-fundo-borrado-restaurante_1253-56.jpg) top center;
filter: brightness(30%);
background-size: cover; /* parallax */
background-attachment: fixed;
background-position: center;
position: relative;
padding: 0;
}
#header{
background: rgba(12, 11, 9, 0.6);
transition: all 0.5s;
z-index: 997;
top: 100px;
}
.navbar ul{
margin: 0;
padding: 0;
display: flex;
list-style: none;
align-items: center;
}
li a{
color: white;
font-size: 1.2rem;
font-family: 'Inconsolata', monospace;
font-weight: bold;
}
li a:hover{
color: #759c4d;
}
ul, li{
list-style-type: none;
}
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5f3d30302b2c2b2b73f3c4b21233f2d30">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"/>
<nav class="navbar navbar-expand-lg " id="header">
<div class="container-fluid">
<a href="#" class="navbar-brand">
<img src="/Logos/logo.png" alt="">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link scrollto active" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link scrollto active" href="#produtos">Produtos</a>
</li>
<li class="nav-item">
<a class="nav-link scrollto active" href="#">Adega</a>
</li>
<li class="nav-item">
<a class="nav-link scrollto active" href="#">Hortaliça</a>
</li>
<li class="nav-item">
<a class="nav-link scrollto active" href="#">Promoções</a>
</li>
<li class="nav-item">
<a class="nav-link scrollto active" href="#">Localização</a>
</li>
<li class="nav-item">
<a class="nav-link scrollto active" href="#">Login</a>
</li>
</ul>
</div>
</div>
</nav>
<section id="background" class="d-flex align-items-center"></section>