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 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.

    HTML:

      & lt; Div class = "coverAll" & gt; Loading ... & lt; / Div & gt;   

    CSS:

      .cover all {z-index: 1000; Background-color: #ccc; Status: fixed; Top: 0 pixels; Left: 0 pixels; Width: 100%; Height: 100%; }    

  • Comments

    Popular posts from this blog

    c - Mpirun hangs when mpi send and recieve is put in a loop -

    python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

    java - Unable to get JDBC connection in Spring application to MySQL -