I am trying to add an inset box-shadow to a mapbox-div in a Bootstrap3 website. The problem is that the shadow is showing up for 1 second when the page is loading and then disappearing behind the map.
Any idea how to push the shadow to the front?
Here is my CSS:
#section1-wrapper {
position:relative;
height: 400px;
}
#section1-container {
background-color:black;
background: rgba(0, 0, 0, 0.5);
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 5px 5px 30px 2px rgba(0,0,0,0.75);
-moz-box-shadow: 5px 5px 30px 2px rgba(0,0,0,0.75);
box-shadow: 5px 5px 30px 2px rgba(0,0,0,0.75);
margin-top: 50px;
color: #fff;
height: 300px;
position:relative;
z-index: 1;
}
#map {
position: absolute;
top:0;
bottom:0;
height: 100%;
width:100%;
z-index:0;
-webkit-box-shadow: inset 0px 0px 10px 5px rgba(0,0,0,0.75);
-moz-box-shadow: inset 0px 0px 10px 5px rgba(0,0,0,0.75);
box-shadow: inset 0px 0px 10px 5px rgba(0,0,0,0.75);
}
HTML:
<!-- Section1 -->
<div class="row" id="section1-wrapper">
<div id="map"></div>
<div class="container" id="section1-container">
<div class="col-xs-12 col-sm-12 col-md-12">
<br />
<br />
<h1 class="text-center">Ipsum Lorum. <br /><br /> Ipsum Lorum.</h1>
<br />
<br />
</div>
<div class="row text-center">
<div class="col-xs-12 col-md-4">
<address>
<strong><abbr title="Telefono">T:</abbr> 777777777</strong
</address>
</div>
<div class="col-xs-12 col-md-4">
<address>
<strong><abbr title="Mail">M:</abbr> <a href="mailto:#">info@eample.com</a></strong
</address>
</div>
<div class="col-xs-12 col-md-4">
<address>
<strong><abbr title="Dirrecion">D:</abbr> any street</strong
</address>
</div>
<br />
<br />
<br />
<br />
</div>
</div>
<!-- Section1 End -->
</div>
JavaScript:
<script src="//api.tiles.mapbox.com/mapbox.js/v1.5.2/mapbox.js"></script>
<script>
var map = L.mapbox.map('map', 'examples.map-9ijuk24y', {
scrollWheelZoom: false,
zoomControl: false})
.setView([40, -74.50], 9);
</script>