Reputation: 5
I want to put a preloader on my bootstrap website but my top navbar is still remaining in it's place while the screen is loading . My aim is to have the preloading screen and then show everything on the website as it is.
How can I achieve that, any examples?
Upvotes: 0
Views: 1307
Reputation: 4526
Try the most higher z-index
on the preloader container.
Example:
.preloader-container{
position: absolute;
z-index: 999999;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #fff;
}
Upvotes: 4