Dudsmack
12-01-2003, 09:20 PM
Here's the code:
<div id="statusBar" style="position: relative; width: 225; z-index: 1; border-style: outset; border-width: medium">
<div id="progress" style="position: absolute; width: 50%; height: 100%; background-color: #0000FF; z-index: 2">
</div>
<div id="percent" style="position: absoulte; width: 100%; height: 100%; text-align: center; z-index: 10">
<b>50%</b>
</div>
</div>
Makes a progress bar, simple enough. Yet, the progress DIV is overwritting the percent DIV, despite that fact that perecent has a higher z-index.
Only way I can make it work is when I set progress z-index to negative number, but then progress div doesn't display in mozilla.
What am I doing wrong?
<div id="statusBar" style="position: relative; width: 225; z-index: 1; border-style: outset; border-width: medium">
<div id="progress" style="position: absolute; width: 50%; height: 100%; background-color: #0000FF; z-index: 2">
</div>
<div id="percent" style="position: absoulte; width: 100%; height: 100%; text-align: center; z-index: 10">
<b>50%</b>
</div>
</div>
Makes a progress bar, simple enough. Yet, the progress DIV is overwritting the percent DIV, despite that fact that perecent has a higher z-index.
Only way I can make it work is when I set progress z-index to negative number, but then progress div doesn't display in mozilla.
What am I doing wrong?