I'm trying to create a map with drop down in it I want the drop down to appear on the map like map shows in background and dropdown on top of it. Right now it is looking like this
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: relative;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
padding: 12px 16px;
z-index: 100;
overflow: auto;
height: 100px;
}
.dropdown:hover .dropdown-content {
display: block;
}
#map {
margin: 0 0 0 0;
height: 100vh;
width: 100%;
position: absolute;
display: block;
}
<div class="col-lg-12 col-12 col-md-12 col-sm-12" style="padding-left: 0px; padding-right:0px;">
<div class="dropdown">
<span>Select Country</span>
<div class="dropdown-content">
</div>
</div>
<div id="map"></div>
</div>
and here is the code: