I have a map and above I want to have a container that in the future will be a modal to contain a form. The problem is that it appears below and I want it to come out, I've been doing tests with position
z-index
etc but nothing finishes coming out. How is it done?
My head tells me that I must have a general container (Gyms-Container) and that it is the parent container and that inside it has map and modal with a relative position and also play with the z-index
#Gimnasios-Contenedor {
padding: 20px 0;
position: absolute;
}
#map {
height: 400px;
width: 100%;
margin: auto;
margin-top: 20px;
z-index: 50;
}
#ModalContacto {
height: 300px;
width: 60%;
background-color: orangered;
margin: auto;
position: relative;
top: 20%;
z-index: 100;
}
<div id="Gimnasios-Contenedor">
<div id="map"></div>
<div id="ModalContacto"></div>
</div>