sepoto Posted February 8, 2011 Share Posted February 8, 2011 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 More sharing options...
dsonesuk Posted February 8, 2011 Share Posted February 8, 2011 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 More sharing options...
Ingolme Posted February 8, 2011 Share Posted February 8, 2011 Setting the image's vertical-align property to "middle" should remove the small space at the bottom. Link to comment Share on other sites More sharing options...
sepoto Posted February 8, 2011 Author Share Posted February 8, 2011 All were great responses. Thank you all for such wonderful help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.