IE 1px Table Gaps

What is the difference between:


<td>
<img src="img.png" border="0" width="300" height="200">
</td>


and:


<td>
<img src="img.png" border="0" width="300" height="200"></td>


A FUCKING 1PX BAR AT THE BOTTOM OF THE TABLE! It took me like 3 hours of dicking around with this html code I am staring at to figure this out. Internet Explorer interprets the line break at the end of the < img> in a < td> as a < br>. Fuck Microsoft even more. Netscape, Mozilla, Firefox, Gecko and Opera do not have this bug.

If you use images in tables and are designing for IE make sure there is no line break before the < td> or you will end up with a 1px gap.

drizzi 19 years ago
i knew this
Lasairduan 19 years ago
Anulien
What is the difference between:


<td>
<img src="img.png" border="0" width="300" height="200">
</td>


and:


<td>
<img src="img.png" border="0" width="300" height="200"></td>


A FUCKING 1PX BAR AT THE BOTTOM OF THE TABLE! It took me like 3 hours of dicking around with this html code I am staring at to figure this out. Internet Explorer interprets the line break at the end of the < img> in a < td> as a < br>. Fuck Microsoft even more. Netscape, Mozilla, Firefox, Gecko and Opera do not have this bug.

If you use images in tables and are designing for IE make sure there is no line break before the < td> or you will end up with a 1px gap.


n00b
Anulien 19 years ago
You IE fucks can go suck penis.
Mileron 19 years ago
This is why I no longer worry about coding for IE.
Vex 19 years ago
Mileron
This is why I no longer worry about coding for IE.


i sincerely hope you only make webpages for your own entertainment and not as a business.

While IE has its security holes, and its "loose" grip on valid HTML, it is still THE most widely used browser on the planet.

Luckily, the Mozilla/Firefox team are angels and they dont make HTML interpretation that much different than IE, so typically, if you can design it in IE, you have already designed it in Moz. Only small things need to be tweaked/added ( for CSS anyways ).
Mileron 19 years ago
Vex
i sincerely hope you only make webpages for your own entertainment and not as a business.

So far, yes.

Only small things need to be tweaked/added ( for CSS anyways ).

I've tried several times to learn how to program CSS. I try to do it by hand, which frustrates a lot of people, but I find I learn more about it than if I used a WYSIWYG editor like Dreamweaver.

Besides, I don't have an actual WYSIWYG to use, and Frontpage 2000 doesn't have much in the way of CSS available anyway.
Guest 19 years ago
I do it by hand too! Same way as Anu does math!
Vex 19 years ago
i use my trusty emeditor for pretty much -everything-.. i'll use dreamweaver if im being lazy to code image rollovers, or gigantic forms, but other than that i find it takes me longer to use their interface than it does for me to type out what i want.
Anulien 19 years ago
"the editor"

http://www.vim.org