I'm setting up a project with Bootstrap
but I'm facing some problems, one of them is the navbar disappearing when the resolution decreases. The other is that I can not type a title right in the middle of the screen.
Problem Navbar
HTML
<headerid="header">
<div id="header-overlay"></div>
</header>
<div id="col-md-12">
<nav class="navbar navbar-expand-md fixed-top py-3 box-shadow mt-5">
<a href="index.html" class="navbar-brand">LOGO</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Abrir Navegação">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link text-white" href="#sobre">Sobre</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="#solucoes">Soluções</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="#contato">Contato</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle text-white" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">PT</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">EN</a>
<a class="dropdown-item" href="#">ES</a>
</div>
</li>
<li class="nav-item ml-3">
<button type="button" class="btn btn-outline-light btn-lg">Entrar</button>
</li>
</ul>
</div>
</nav>
</div>
CSS
/*Header*/
#header {
background: url("../img/header-bg.jpg");
background-size: cover;
background-position: center;
position: relative;
top: 0;
bottom: 0;
height: 90%;
z-index: -10;
}
#header-overlay {
position: absolute;
background-color: rgba(0, 0, 0, 0.4);
top: 0;
bottom: 0;
height: 100%;
width: 100%;
z-index: -5;
}
Another problem I'm facing is that I need to write a text in the middle of this screen, but when I write it it continues on the side of navbar
and if I get the tag nav
it writes below, I need to put the text on the image and when the image ends up getting the contents of the site.