Forum Moderators: not2easy
Does anyone know how to solve this problem. The drop-down box works fine in other browsers, but not in NN. If I removed the overflow: auto of the div that encloses the form, it works OK.
Here is the stripped down code:
<html>
<head>
<style>
DIV.form { width: 303px; overflow: auto; height: 200px; }
</style>
</head>
<body>
Some text
<div class="form">
<form method="GET" name="my_form" action="whatever.html">
<select name="numresults" size="1">
<option>Show 20 results</option>
<option selected>Show 50 results</option>
<option>Show 100 results</option></select>
</form>
</div>
</body>
</html>
Thanks
Shawn
Hiding CSS from Older Browsers [webmasterworld.com]
Making CSS Work in NN4 [webmasterworld.com]
This Could Really Help - Dig Down... [webmasterworld.com]
Nick
However LHG - I happen to disagree (;)) with you in that I think that NN7 has THE BEST (at least the most correct) CSS support of all browsers..
-----------------------------
I came across this problem with something else recently - adding a z-index to the div and the form (higher one for the form) fixes this.. also position: relative needs to be added to the div and form before they'll accept the z-index value..
It's almost as if overflow: auto; adds a "film" over the div so you cannot access what's in it so specifying z-index places the form on top of "film"?
Non-technical explanation here ;), but perhaps some of the spec. wizards can help with the correct terminology..
I'd be interested to know if it is IE being too lenient again or if it is a NN "bug" this time...
CSS:
div.form {
width: 303px;
overflow: auto;
height: 200px;
border: 1px solid #000;
background: #ff0;
z-index: 0;
position: relative;
}
div.form form {z-index: 50;position: relative;}
Suzy