html - How do I grey out and show a loading GIF in the centre of a table -


I have a whole & lt; Table & gt; How does a loading image show in between?

I have run some AJAX calls and are not able to enter the table and Ajax references are overlayed with a gray background with a loading GIF in the center when loading.

This should work! Here, I betrayed with AJAX, it's not difficult. I have copied an AJAX call with my timeout function.

By keeping in mind the other things, you can make that parent div a height Or width because my table is very low because it looks nonsensical from outside. Status: Relative is required because it allows the .page-loader to fill that space.

You can clearly play with it.

HTML:

  & lt; Div style = "position: relative" & gt; & Lt; Div class = "page-loader" & gt; & Lt; Img src = "/ content / loader.gif" style = "status: full; margin: auto; top: 0; left: 0; right: 0; bottom: 0;" Width = "100" alt = "Loading" & gt; & Lt; / Div & gt; & Lt; Table & gt; & Lt; / Table & gt; & Lt; / Div & gt;   

CSS:

  .page loader {status: absolute; Height: 100%; Width: 100%; Background: Gray; MS-Opacity: 0.5; Opacity: 0.5; Z-index: 1000000; display none; Margin-left: -40px; Margin-top: -19px; }    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -