help with css and dhtml menu and form problem

R

rf

mark said:
anyne help me solve this problem.

you access www.sicl.neue.co.uk/about/questionnaire.asp and roll over the
technology or services menu, the slidedown menu goes beneath the select box
in the form below?

There is nothing you can do to stop this. The select box is a seperate
Windows window, a child window of the browsers client window and so
therefore lives in front of anything on the browsers window. This is an
operating system requirement.

There are two workarounds:

Organize your page so that the dropdown never goes near any select elements,
or other form elements for that matter.

Make the form elements invisible while the dropdown is active.
 
R

rf

altamir said:
[...]
Make the form elements invisible while the dropdown is active.

and show an image which is a screen capture of those elements.

What? Why would I need to do that?

The OPs menu system is driven by javascript. It would be a trivial matter to
alter the style of the offending select elements to invisible when a
dropdown occurs, and to alter it back to visible when the dropdown is
dismissed. An, er, excercise for the student :)
 
T

Toby Inkster

rf said:
There is nothing you can do to stop this. The select box is a seperate
Windows window, a child window of the browsers client window and so
therefore lives in front of anything on the browsers window. This is an
operating system requirement.

Depends on the browser. Opera and Mozilla render form controls themselves
rather than falling back on the OS's widgets. This allows them to overlay
other elements.

Try this:
<style type="text/css">
span {
color:green; background:yellow;
position:relative; top:-0.6em; left:1em;
}
</style>
<select>
<option>foobar</option>
<option>corge</option>
</select><br>
<span>quux</span>

Tested and overlays in Mozilla 1.6 and Opera 7.53 for Linux.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top