• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt on div display

 
S Chandra Mohan
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I have a problem in displaying menu using div.
Actually the div gets displayed on mouseover event and the position of the div is absolute.
I have a listbox in the deisplay area.
When the dive gets displayed, the content of the
same gets hidden behind the listbox. hence couldnt view the options properly.
Pls help me out from this problem.
U can also mail me in sc_mohan_us@yahoo.com.
thanks in advance
regards
S Chandra Mohan
 
Randall Twede
Ranch Hand
Posts: 4469
3
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you are talking about a <select>, you can set how many items are displayed like this: <select size="2"> which will display only 2 items in the listbox. set the size so it doesnt cover up your menu
 
S Chandra Mohan
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not talking about <select> tag....
what i mean is...
i have a menu on the top of every page of
my application. The menu gets activated on
mouseover event and the menu (made of div)
gets hidden by the components available in
the page....
if u want the code i can mail it to u.
thanks
 
Yuriy Fuksenko
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a known bug:
in NS4 layers (you could read it as div's) are always behind any form elements.
in IE4/5 (not sure about 6) List box (SELECT tag) element is alwaus on top of any layer.
Possibly, but not very good solution is:
For IE - you getting coordinates for your menu, looping through all selects on a page, and if it is inside menu location, you hiding it using either visibility=hidden or display=none.
For NS4 it is much more complicated - you could hide/display only layers, each layer must have it's own form. So if you need it for NS4 it is easier to redesign your page layout.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic