boxTop

NAMA blog

Possessed Internet Explorer 6.0

Every once in a while, I come across “possessed” codes while developing for hope-to-die-soon Internet Explorer 6.0. I read over the code a hundred times and quadruple check everything yet I can’t locate the origin of the annoying gap that shouldn’t be there. It used to be because of an empty space between the previous tag and the img tag in html (which shouldn’t be a problem since space is ignored in html) but today I encountered another unresolvable gap. After pulling my hair out for few hours (thank god my parents aren’t bald) I found the solution which was as odd as the IE itself. I entered a br tag after the img tag and somehow the gap disappeared. I don’t remember using any middle-ing so I’m not sure how that pushed the image up but it did and I’m too tired to figure out what happened. (you can only stare at the same 2 lines of code for so long) So next time you come across some gap above an img in IE that you KNOW shouldn’t exist, try one of those 2 tricks. It’ll help maintain your sanity through this jungle of browser compatibility.

Leave a Reply

You must be logged in to post a comment.

boxBottom