how to overlay a new div over entire body of HTML using Jquery? -
I have a problem similar to the post. During the Ajax request, I am trying to insert the background image of the loading icon and the background of the depth, any kind of gray background does not spread to the bottom of the page. As I scroll, it goes away. I had given suggestions in that post, but none helped, I thought about replacing a brand new device that covers the entire HTML and is deeply with loading the background. But I do not know how to do it.
Make existing content invisible or with any help?
Any help?
Actually, you'll need the HTML: CSS: div which was hidden most of the time Is not better than
display: any , and then you will call
$ (".cover all"). Show (); When you want to cover the screen the styles for the div are below by z-index'ing, located above your remaining content, you effectively hide that content behind it.
& lt; Div class = "coverAll" & gt; Loading ... & lt; / Div & gt;
.cover all {z-index: 1000; Background-color: #ccc; Status: fixed; Top: 0 pixels; Left: 0 pixels; Width: 100%; Height: 100%; }
Comments
Post a Comment