Results 1 to 2 of 2

Thread: Paint bug with "floating" DIV

  1. #1
    Join Date
    Sep 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Paint bug with "floating" DIV

    I use a "floating" DIV to simulate a popup box. It seems to
    have a paint problem when I move it on top of a combo box control. I mean, the combo box would appear through this "floating" box.

    Do you have a suggestion on how about I can fix this?

    Thanks,
    Minh

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That only happens in IE. You have three basic choices:

    1 ) Put the combo box somewhere else where it could never be in contact with the 'floating' division.

    2 ) While and only while the division is displayed, switch the combo box's

    style.visibility='hidden'

    3 ) This is the most elegant and trickiest to pull off. Have an iframe of exactly the same dimensions as the 'float' and have it be in exactly the same position as the 'float'. Set the 'float's z-index to 100 and the iframe's to 99. The trickiest part is to do this only in IE as, it will create a mess in all other browsers. I've done this mod for a few scripts:

    http://www.google.com/search?hl=en&l...r1&btnG=Search
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •