473,385 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Combo box is always on the top

I would like to have div tag over combo box, not combo box over div tag.
I have this problem on many pages usually when I use drop down menus.
I try to solve this problem with z-index but it doesn't work.
Have anybody some idea?

Here is the simple example:

<html>
<head>
</HEAD>
<BODY>
<SELECT id=select1 name=select1 style="z-index:1">

<OPTION>this is select box</OPTION>

</SELECT>

<div name="div1" id="div1"
style="position:absolute;margin-left:-100;margin-top:0;z-index:10">

<table bgcolor="Gainsboro" border="1" width=100 height=100>
<tr><td>some text</td></tr>
</table>
</div>
</body>
</html>

Thank you for your answer,
Simon
Jul 19 '05 #1
4 8076
Simon wrote:
I would like to have div tag over combo box, not combo box over div
tag. I have this problem on many pages usually when I use drop down
menus.
I try to solve this problem with z-index but it doesn't work.
Have anybody some idea?

Here is the simple example:

<snip of unneeded html>
This question is off-topic for this newsgroup which is targeted for asp
(server-side) questions. Your issue is a client-side html issue, so you
would be better off following up in an html newsgroup.

Having said that, I can tell you that there is no way to prevent a dropdown
from obscuring other elements. A SELECT element is a "windowed" element,
meaning that a new window is created to implement the dropdown list. Since
it is a new window, it will be displayed "over" non-windowed elements such
as divs. Your only solution is to create your own dropdown using client-side
jscript code to manipulate a textbox and a table or div.

Again, please follow up in an html or dhtml newsgroup.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #2
set the select display to none when the div is supposed to hide it

tim
"Simon" <si*********@stud-moderna.si> wrote in message
news:3f********@news.s5.net...
I would like to have div tag over combo box, not combo box over div tag.
I have this problem on many pages usually when I use drop down menus.
I try to solve this problem with z-index but it doesn't work.
Have anybody some idea?

Here is the simple example:

<html>
<head>
</HEAD>
<BODY>
<SELECT id=select1 name=select1 style="z-index:1">

<OPTION>this is select box</OPTION>

</SELECT>

<div name="div1" id="div1"
style="position:absolute;margin-left:-100;margin-top:0;z-index:10">

<table bgcolor="Gainsboro" border="1" width=100 height=100>
<tr><td>some text</td></tr>
</table>
</div>
</body>
</html>

Thank you for your answer,
Simon

Jul 19 '05 #3
hello simon,

you can try allwebMenus PRO from www.likno.com

it is a handy software for creating dhtml menus with the capability of
unfolding on top of flash objects and combo boxes (nad not just that).

check their online example at
http://www.likno.com/examples/ShowHi..._elements.html

hope this helps.
"Simon" <si*********@stud-moderna.si> wrote in message news:<3f********@news.s5.net>...
I would like to have div tag over combo box, not combo box over div tag.
I have this problem on many pages usually when I use drop down menus.
I try to solve this problem with z-index but it doesn't work.
Have anybody some idea?

Here is the simple example:

<html>
<head>
</HEAD>
<BODY>
<SELECT id=select1 name=select1 style="z-index:1">

<OPTION>this is select box</OPTION>

</SELECT>

<div name="div1" id="div1"
style="position:absolute;margin-left:-100;margin-top:0;z-index:10">

<table bgcolor="Gainsboro" border="1" width=100 height=100>
<tr><td>some text</td></tr>
</table>
</div>
</body>
</html>

Thank you for your answer,
Simon

Jul 19 '05 #4
It looks like all they do is hide (style.display='none') any control that
would shine-through. A simple 4 or 5 line loop accomplishes that, and it
doesn't cost $60.

Sorry, but I got my hopes up.

- Wm
--
William Morris
Product Development, Seritas LLC
"cristine.n" <cr*********@hotmail.com> wrote in message
news:9b**************************@posting.google.c om...
hello simon,

you can try allwebMenus PRO from www.likno.com

it is a handy software for creating dhtml menus with the capability of
unfolding on top of flash objects and combo boxes (nad not just that).

check their online example at
http://www.likno.com/examples/ShowHi..._elements.html

hope this helps.
"Simon" <si*********@stud-moderna.si> wrote in message

news:<3f********@news.s5.net>...
I would like to have div tag over combo box, not combo box over div tag.
I have this problem on many pages usually when I use drop down menus.
I try to solve this problem with z-index but it doesn't work.
Have anybody some idea?

Here is the simple example:

<html>
<head>
</HEAD>
<BODY>
<SELECT id=select1 name=select1 style="z-index:1">

<OPTION>this is select box</OPTION>

</SELECT>

<div name="div1" id="div1"
style="position:absolute;margin-left:-100;margin-top:0;z-index:10">

<table bgcolor="Gainsboro" border="1" width=100 height=100>
<tr><td>some text</td></tr>
</table>
</div>
</body>
</html>

Thank you for your answer,
Simon

Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Krisa | last post by:
Hello all, I just discovered something (stop me if you've heard this before....) that was causing me a significant performance hit when opening a form with subforms. To speed up loading the...
5
by: Dalan | last post by:
I have been searching the archives in an effort to discover how to derive a dual use of a single combo box - so far no go. I found the piece below which pretty much represents the usage. To...
1
by: meganrobertson22 | last post by:
Hi Everyone- I am trying to use a simple macro to set the value of a combo box on a form, and I can't get it to work. I have a macro with 2 actions: OpenForm and SetValue. I can open my form,...
1
by: dimension | last post by:
Hi, I have a combo box that is bound AFTER a user makes a selection from another unbound drop down. The problem is, the SelectedIndex of the combo box is always initialized to 0, not -1. This...
1
by: Jimmy Stewart | last post by:
Is there a way to set up a combo box so that when the user clicks the arrow, the list is populated with info from a specific field from a table but once they select an option, data from another...
8
by: AA Arens | last post by:
Hi I do have a products table and products-parts table in my Access 2003 database and log all services into a form. I do have at least the following two combo boxes on my form: - Choose...
2
by: billelev | last post by:
I have a form with two combo boxes. The first, cboAccount, allows a user to select an account. Ideally, the second combo box, cboSubAccount, will allow the user to select a Sub Account from a list...
2
by: biganthony via AccessMonster.com | last post by:
Hi, I decided to install Office 2003 Service Pack 3 on my home computer to test (in full knowledge that there may be some issues with it). After installation, I have noticed that with a small...
0
by: Jeff | last post by:
I don't remember this being that hard. Or maybe it's just early senility. On a simple bound continuous form I have a combo for filtering the form by customer. The form record source is a sql...
4
by: Karl | last post by:
Using A2000 with 2 tables Table 1 is a reference table with 2 fields Table 2 has 2 fields and 2 combo boxes to lookup date in table 1 Combo1 binds to col 1 in table 1, this works OK Combo 2...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.