Your div.noturno
has virtually the same CSS as the fade div modal
of jQueryUI
, and its intention is precisely to prevent the interaction of the user with the other elements of the page.
In this case, the dialogue itself is only accessible, because it has a z-index higher than the div modal
or is inside the div.noturno
.
z-index major
.noturno{
z-index: 9000;
position: fixed;
height: 100%;
width: 100%;
background-color: rgba(0,0,0,0.5);
}
.corpo{
position: relative;
z-index: 9001;
}
<div class="noturno">
</div>
<div class="corpo">
<button>Teste</button>
<a href="#">Teste 1</a>
</div>
internal div:
.noturno{
z-index: 9000;
position: fixed;
height: 100%;
width: 100%;
background-color: rgba(0,0,0,0.5);
}
<div class="noturno">
<div class="corpo">
<button>Teste</button>
<a href="#">Teste 1</a>
</div>
</div>
+1, did not know.
– Tobias Mesquita