View Full Version : Paint bug with "floating" DIV

09-26-2006, 06:56 PM
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?


09-27-2006, 05:36 AM
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


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: