Note that there are some explanatory texts on larger screens.

plurals
  1. POOdd problem with IE8 and z-index CSS property
    primarykey
    data
    text
    <p>I not been able to put one DIV over his parent DIV in Internet Explorer. With Firefox is working as suposed to.</p> <p>The odd part is that if I open the html file directly in IE, everything works fine. But if I upload to the server and open from there, the div is hidden underneath his parent.</p> <p>I've tried several z-index combinations and none works.</p> <p>Here's the code:</p> <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt; &lt;head&gt; &lt;title&gt;Test&lt;/title&gt; &lt;meta http-equiv="content-type" content="text-html; charset=utf-8" /&gt; &lt;style type="text/css"&gt; .col { float:left; width:310px; margin-right:13px; } .art { position:relative; border-bottom: 1px solid #d0d0d0; font: normal normal bold 11px Arial,Verdana,Helvetica; color:#A0A0A0; width:310px; height:50px; top:0px; left: 0px; margin-right:10px; background-color:#F0F0F0; } .art a { padding:3px; display:block; width:304px; height:100%; color:#707070; } .art a:visited { color:#A0A0A0; } .art a:hover { background-color:#E0E0E0; } .box { z-index:1000; background-color:#A0A0A0; color:#404040; font: normal normal bold 11px Arial,Verdana,Helvetica; display:none; position:absolute; top:30px; left:10px; text-align:left; border:3px solid #707070; margin:5px 0px 5px 5px; font-size:10px; color:White; width:100%; } &lt;/style&gt; &lt;script type="text/javascript"&gt; function sh(obj) { var el = document.getElementById(obj); if ( el.style.display != 'block' ) { el.style.display = 'block'; } else { el.style.display = 'none'; } } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="col"&gt; &lt;div class="art"&gt; &lt;a href="" target="_blank" onmouseover="javascript:sh('i0')" onmouseout="javascript:sh('i0')"&gt;Title 1&lt;/a&gt; &lt;div id="i0" class="box"&gt; &lt;div class="text"&gt; Les "chemises rouges" manifestent depuis la mi-mars pour faire tomber le gouvernement et occupent depuis trois semaines un quartier touristique et commerçant autour duquel ils ont érigé des barricades. &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="art"&gt; &lt;a href="" target="_blank" onmouseover="javascript:sh('i1')" onmouseout="javascript:sh('i1')"&gt;Title2&lt;/a&gt; &lt;div id="i1" class="box"&gt; &lt;div class="text"&gt; Une association ardéchoise accueillant des séminaires de "bien-être" et de "développement personnel" a refusé d'accueillir un stage de danse en invoquant l'homosexualité des participants, ont indiqué aujourd'hui les organisateurs. &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>What's is going on here?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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