homeprojectstutorialsbooksmusicaboutblue
tag is written in the same line with it's parent
Newsflash: IE6 sucks!

If you have visited my site earlier, than you may have noticed that it looks terible when opened with IE6. Today I decided to fix this issue, cause you can't be blind to the fact that the majority of the users use IE6, although Firefox is far superior. Maybe things will change in the next IE7 version. Time will tell.

So, here's what was giving me headaches in the past few hours:

These are screenshots of how this site was rendered by IE6 and Firefox, respectively. You can notice from these pictures(you can click on them to view fullscreen) that IE6 puts blank space between every row of my table layout design, no matter that the appropriate attribute cellspacing and the appropriate attributes in CSS were set to 0!

my site rendered in IE6   my site rendered in Firefox

The root cause:

This is the code that was causing this spacing between rows in IE6:












This same code will cause these different behaviours in IE6 and Firefox, respectively:

bender in IE6   bender in Firefox


As you can see, the pictures which are in adjacent rows, will be wrongly interpreted in IE6, making a free space between the rows which will make you table-layout design totally unusable and unsightly.

So, what's the solution?

This code will make both browsers to render it the same way:










If you can believe it, the only difference(marked with italic style) is that the enclosing
! And if you even have the fundamental knowledge of HTML you surely know that empty spaces doesn't matter in a HTML source document. Furthermore, this even isn't an empty space it's a newline character and still IE6 manages to interpret it in it's own mysterious ways. Unbelievable! Lucky for me I'm not a web designer. From this day on I'll respect you more guys ;-) .


Have anything to say about this story? Please, drop me a note!