IE with relative/absolute position alongside floats

I have often come across an issue in IE when using absolute positioning inside a relatively positioned container. The absolutely positioned element simply disappears in IE. The fix for me has always been to move the HTML of the absolutely positioned element to a different place in the source code. I never knew why this worked but it did. I often had to try various places in the code before fixing the issue. Thanks to this website I now know this issue occurs when an absolutely positioned box is the preceding or the following sibling of a float in the source code. Any box (even an extra dummy div) "separating" the box from the float in the source code (either being between them, or wrapping one of them) fixes the problem. Hence why moving code around helped me. If anyone knows a better fix for this problem please let me know. I personally hate extra markup to fix problems. 24 January 2007