When users interact with the page, multiple areas load asynchronously. Unlike hhgregg.com which masks the entire page, I want to mask only the specific region that is loading.
<div id="A">Loaded by Xhr</div>
<div id="B">Loaded by xhr based on actions with A</div>
<div id="C">Loaded by xhr based on action within B</div>
Since these regions are sized according to screen resolution, setting an absolute position for a loading gif won't work.
How can I use CSS to create a loading mask that covers just the div where the loading is happening? The loading mask itself is not the issue, it's figuring out how to target and fill only the desired div.