I don't have a direct fix for your issue, but I will recommend that you change your code to work perfectly in Firefox, then you tweak it (read: use conditional comments) so it works in IE.
Always target the better browser first, it will make your life easier in the long run.