Yussi Ariefiyono
z index in IE 6
problem:
overlap div in IE6, z index is not working correctly in IE6
solution:
- put the relative position in "wrapper" div
- for the overlaped div, put on absolute positions
css code example:
#wrapper{ position: relative; }
#box1 { position: absolute; top: 150px; left:60px;width: 200px; height: 200px; background-color: yellow; z-index: 20; }
#box2 {position: absolute; top: 100px; left: 0px;width: 200px; height: 200px; background-color: lime; z-index: 10; }
html code example:
<div id="wrapper">
<div id="box1">
<p>
This box should be on top</p>
</div>
<div id="box2">
<p>
box 2</p>
</div>
</div>
| Print article | This entry was posted by yussi ariefiyono on August 11, 2009 at 12:24 pm, and is filed under css. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |