I'm trying to create a div
in the whole screen that will serve as a loading
, but I'm having a problem because in <header>
I have a navbar
that I set to navbar-fixed-top
and div
covers this area of the header. When I remove this property navbar-fixed-top
works, but navbar
is not fixed at the top.
How do I div
cover the entire area including <header>
?
CSS
.div_loading {
position:absolute;
top:0;
left:0;
z-index:11;
background-color:#000;
width:100%;
min-height:100%;
height:auto;
opacity: .50;
filter: alpha(opacity=65);
}
Header (Navbar)
<header>
<div class="navbar navbar-default navbar-fixed-top bg-red" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<h1 class="text-white">MeuSite</h1>
</div>
@Html.Partial("_LoginForm")
</div>
</div>
</header>
Div Loading
<div class="div_loading"></div>