I've got this layout and I need div#loadingpopup to have a 100% height and 100% width of the parent (#jobs), overlaying/ignoring its siblings (.job-listing) so that the content of both div.job-listing is still barely visible through the semi-transparent background of div#loadingpopup. How can that be achieved?
So far I tried setting position:absolute, width and height for 100%; top and left for 0, for #loadingpopup but it works, covering the whole viewport when I needed only #jobs (parent div) to be covered with my #loadingpopup
<div id="jobs">
<div class="job-listing">
<h4 class="job__title"> Test </h4><br>
</div>
<div class="job-listing">
<h4 class="job__title"> Test </h4><br>
</div>
<div id="loadingpopup" style="background-color:rgba(0,0,0,0.2)">
<span><i class="fas fa-circle-notch fa-spin" style="margin-right: 16px"></i>Loading...</span>
</div>
</div>