Jump to content

Image in TD needs to have zero padding.


sepoto

Recommended Posts

I have an image that needs to bottom aligned inside a TD with zero padding. I can't seem to get it to work right. For some reason a specify bottom align and no padding but I always seem to end up with padding no matter if I want it or not. Has anyone dealt with something like this before?Thank you.

Link to comment
Share on other sites

have you set cellpadding and cellspacing to zero?is the html of tr, td, img in one line as in<table cellspacing="0" cellspading="0" border="0"><tr><td><img src="mitimage.jpg" alt="" title="" /></td></tr></table>if they broken apart, with line breaks, and have any spaces, this will be included in display, and show spacing the same as current font-size<table cellspacing="0" cellspading="0" border="0"> <tr><td><img src="mitimage.jpg" alt="" title="" /></td></tr> </table>another way to get over this, where you don't have worry about line breaks, etc is to use float for the image

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...