JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<div id="myDiv">This is div</div>
<div id="layer1"></div>
<div id="overlayDiv"><span id="msg"></span></div>
</body>
CSS
#msg{
position: absolute;
top: 1px;
height : 90%;
width : 80%;
z-index: 700;
left : 0px;
background: rgba(0,255,255,0.5);
}
#layer1{
position : absolute;
background : red;
z-index: 1500;
left : 500px;
}
JavaScript
$(document).ready(function(){
openLoadFunction("Loading....");
});
function openLoadFunction(msg)
{
}