Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS div overlay and jQuery
    primarykey
    data
    text
    <p>This is more or less a <a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets" rel="nofollow noreferrer">CSS</a> question but I am using it with <a href="http://en.wikipedia.org/wiki/JQuery" rel="nofollow noreferrer">jQuery</a>. OK, so basically what I have is this:</p> <pre><code>&lt;div style="overflow: hidden; width: 1000px; height: 450px; background-color: rgb(0, 0, 0); position: relative;" id="wrapper"&gt; &lt;div style="background-color: rgb(255, 255, 255); opacity: 0.9; top: 0pt; left: 0pt; width: 1000px; height: 450px; position: absolute; z-index: 500;" id="mask"&gt;&lt;/div&gt; &lt;div class="ui-draggable" style="margin: 60px auto auto; position: relative; width: 1550px; height: 340px;" id="test"&gt; &lt;div style="float: left; margin-left: 10px; width: 100px; position: relative;" class="row"&gt; &lt;div style="width: 100px; height: 100px; margin-top: 10px; position: relative;" &gt;&lt;img style="width: 100px; height: 100px; position: relative;" class="img" src="/images/Chrysanthemum.jpg"&gt;&lt;/div&gt; &lt;div style="width: 100px; height: 100px; margin-top: 10px; position: relative;" &gt;&lt;img style="width: 100px; height: 100px; position: relative;" class="img" src="/images/Desert.jpg"&gt;&lt;/div&gt; &lt;div style="width: 100px; height: 100px; margin-top: 10px; position: relative;" &gt;&lt;img style="width: 100px; height: 100px; position: relative;" class="img" src="/images/Hydrangeas.jpg"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div style="float: left; margin-left: 10px; width: 100px; position: relative;" class="row"&gt; &lt;div style="width: 100px; height: 100px; margin-top: 10px; position: relative;" &gt;&lt;img style="width: 100px; height: 100px; position: relative;" class="img" src="/images/Jellyfish.jpg"&gt;&lt;/div&gt; &lt;div style="width: 100px; height: 100px; margin-top: 10px; position: relative;" &gt;&lt;img style="width: 100px; height: 100px; position: relative;" class="img" src="/images/Koala.jpg"&gt;&lt;/div&gt; &lt;div style="width: 100px; height: 100px; margin-top: 10px; position: relative;" &gt;&lt;img style="width: 100px; height: 100px; position: relative;" class="img" src="/images/Lighthouse.jpg"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div style="position: absolute; left: 978px; top: 223px; color: rgb(255, 255, 255);" id="next-btn"&gt;Next&lt;/div&gt; &lt;div style="position: absolute; left: 8px; top: 223px; color: rgb(255, 255, 255);" id="prev-btn"&gt;Prev&lt;/div&gt; </code></pre> <p>What I am doing with the mask div is trying to get it to overlay the whole wrapper. So I set its width and height to the height of the wrapper. This works fine in Firefox, Chrome and Safari.</p> <p>However, in Internet Explorer it is not working. How can I make this overlay?</p> <p>I tried setting the position to absolute which worked fine except one thing. There is something that is going on top of this mask. Its position is relative. I set the one on top to a z-index of 1000 and the mask to 500. However it seems there is a bug in Internet Explorer that automatically makes an absolute div be on top of everything.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload