Skip to content

Instantly share code, notes, and snippets.

@dethbiscuit
Created August 29, 2018 07:42
Show Gist options
  • Save dethbiscuit/d93f5494929f607f055b56585f179235 to your computer and use it in GitHub Desktop.
Save dethbiscuit/d93f5494929f607f055b56585f179235 to your computer and use it in GitHub Desktop.
Div overlay
.overlay-container {
position: relative;
}
.overlay-sibling-under,
.overlay-sibling-upper {
height: 500px;
width: 100%;
position: absolute;
top: 0;
left: 0;
}
.overlay-sibling-upper {
z-index: 10;
padding-top:50%;
}
<!-- Source : http://jsfiddle.net/8wp4xk5g/1/ -->
<div id="overlay-container">
<div id="map" class="overlay-sibling-under"></div>
<div id="divSpinner" class="spinner overlay-sibling-upper">
<i class="fa fa-spinner fa-pulse fa-3x fa-fw" style="color:#FFFFFF;"></i>
<p>loading</p>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment