I am using a <select> and a <div> that is positioned absolutely to float over top of the <select>. In Safari, this <div> overlaps the <select> and its scrollbar fine. But in Firefox, the scrollbar (but not the rest of the <select>) overlaps the <div>. Is there any way to avoid this or is this just a Firefox bug?
Link to the page in question: Scrollbar Overlap Example
And here's the HTML code for the page:
As you can tell, I've tried upping the z-index on the <div> but to no avail.
Link to the page in question: Scrollbar Overlap Example
And here's the HTML code for the page:
Code:
<html>
<head>
<style type="text/css">
#overlay_box {
position:absolute;
top:10px;
left:50px;
border:1px solid black;
background-color:yellow;
z-index:1000;
}
</style>
</head>
<body>
<select size="5">
<option>Choice 1</option>
<option>Choice 2</option>
<option>Choice 3</option>
<option>Choice 4</option>
<option>Choice 5</option>
<option>Choice 6</option>
<option>Choice 7</option>
<option>Choice 8</option>
<option>Choice 9</option>
</select>
<div id="overlay_box">OVERLAY</div>
</body>
</html>