Saturday, June 24, 2006

Strange bug: a gap under IMG tag inside TD or DIV in Firefox

When I use strict doctype for my page, strange thing happens: A gap appears under the images in my page like this:

IE has no problem with this, but Firefox has. I tried to set padding and margin of the IMG and the DIV block but the gap still not disappeared.

Note: This thing don't happen if you use transitional doctype.

How to solve it?

I found this link on the Internet:

http://www.mozilla.org/docs/web-developer/faq.html#gaps

More information here.