• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

doubt on div display

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic