Forum Moderators: not2easy

Message Too Old, No Replies

Images in Table Cells in Firefox

         

Josh_F

11:03 pm on Mar 21, 2005 (gmt 0)

10+ Year Member



I've got a page that has individual table cells containing only a single image each. Firefox seems to add a margin or gap of a couple of pixels below each image. The code:

<td colspan="2"><img src="../contactbook/images/globes.jpg"></td>

Note that I even took out the whitespace characters. If you look at it in IE, there's no gap: the table cell shrinks to fit the image exactly, but not in Firefox 1.0.1.

Anyone have any solutions?

Josh_F

11:04 pm on Mar 21, 2005 (gmt 0)

10+ Year Member



I should also point out that I have tried turning off my stylesheet to see if there was a conflict or formatting bug... nope.

bartainer

12:22 am on Mar 22, 2005 (gmt 0)

10+ Year Member



I'm not getting the same result and I'm design with Dreamweaver. <td><div align="center"> etc, etc</>

Josh_F

12:36 am on Mar 22, 2005 (gmt 0)

10+ Year Member



Yeah, I just fixed it. Turns out it was a DOCTYPE issue. Going from Strict to Transitional made the problem go away. Don't know why, but it works.

Thanks for checking.