Results 1 to 2 of 2

Thread: Image scretch in <td>

  1. #1
    Join Date
    Nov 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image scretch in <td>

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •