FancyPrairie
Programmer
I've created a div tag with overflow set to auto. Within the div tag I have several objects (textboxes, labels, etc). I also have a listbox. The height of the div tag is set so that about 1/2 of the information is shown. To see the rest, the user must scroll down. OK so far. But when I scroll, the listbox doesn't scroll with the rest of the information. It remains in its orginal position.
Is there some kind of "trick" to force the listbox to scroll with the rest of the information?
Here's an example of my code:
Is there some kind of "trick" to force the listbox to scroll with the rest of the information?
Here's an example of my code:
Code:
<div style="background-color: white; position: relative; float: right; overflow: auto; width: 731px; height: 600px; ">
...
<SELECT id=MyListBox style="LEFT: 147px; WIDTH: 103px; COLOR: blue; POSITION: absolute; TOP: 8px" >
<OPTION value=-1 selected>Select Yes or No</OPTION>
<OPTION value=Y>Yes</OPTION>
<OPTION value=N>No</OPTION>
</SELECT>
...
</div>