I have css file like this
.mask {
display: none;
}
#mask.loading {
display: block;
width: 100%;
height: 100%;
position: absolute;
z-index: 1000;
background-image: url('/icon.gif')
background-position: center;
background-repeat: no-repeat;
}
table.loading {
opacity: .5;
}
And I want to show icon until table loads so I'm calling it like
$('#tableDisplay,#mask').addClass('loading');
$('#tableDisplay,#mask').removeClass('loading');
And in my html I added as
<div id="mask"></div>
<table id="tableDisplay">
</table>
And when I load page I can see table opaque but I do not see icon and my icon file is in same dir as css file