Log in

View Full Version : Image scretch in <td>



amr_mk
11-27-2007, 07:28 AM
Hello,
I have problem ,
<table border="1" cellpadding="0" cellspacing="0" >
<tr height="35px">
<td style="width: 100px; height: 31px;">
</td>
<td style="width: 100px; text-align: center; height: 35px;">
<img src="SiteImages/mo14.jpg" /></td>
<td style="width: 100px; height: 31px;">
</td>
</tr>
</table>

I want Image in td tag to be not scretch the height more than 35 px if the hieght of the image more than 35px...
and IF the height of the Image less than 35px to be not scretch of the origenal size...
thanks

jscheuer1
11-27-2007, 09:54 AM
Edit your image in an image processing program so that it is the size that you want it to be.

Also of note:

You cannot have td's of varying heights in the same tr.

The tr tag has no height.