SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict mmanders's Avatar
    Join Date
    Jul 2006
    Location
    Edinburgh, Scotland
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <div> elements above <form> elements

    I'm using a number of search controls in a top of page banner. One of them uses AJAX techniques to suggest terms to the user. This works by showing a hidden positioned div when the onKeyUp event is triggered. My div is always hidden by a form select box beneath it even though I have a z-index: 999 and position: absolute on the div. Is it possible to palce this div above the select elements because if it is I would have thought my CSS would have worked. Many thanks for any suggestions.

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Got a link? Would be a lot easier to deal with than just imagining it.

  3. #3
    SitePoint Addict mmanders's Avatar
    Join Date
    Jul 2006
    Location
    Edinburgh, Scotland
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Afraid I don't have a link. I'm working on an intranet and have to design against IE6. I did some research though and it would seem that of all the elements html offers, the select element is buggy. Unless you use an iframe, the only thing that will appear on top of a select is another select even with positioning and z-index.

  4. #4
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Ah yes, I've read about that somewhere. Bummer. And select isn't the only one that's buggy, in fact, most things in IE6 are buggy.

    If you're really after this effect, you could make a custom <select>, much like dropdown menus, out of a list.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •