title: How to force an image to resize in relation a fixed table cell
body: <p>I have been looking around online trying to find out how to put in image that is echoed out using PHP into a table sell but have the table cell a fixed size, I'm hoping that I can get the image to re size in proportion to fix within the table cell. Images are going to vary in size therefore I was hoping it would see the images max relative high or width and display accordingly so at the end there may be a little gap in either width or height but the image will be re-sized and displayed within the set table cell. Any pointers will be much appreciated.</p>
  
  <p>Here is my current PHP code for my table as of yet there is no fixed sizes:</p>
  
  <pre><code>&lt;?php
  foreach($searchResult1 as $row){
  ?&gt;  
  &lt;tr&gt; 
      &lt;td&gt;&lt;b&gt;Seller: &lt;/b&gt;&lt;?php echo $row['Owner'];?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;b&gt;Asking Price: &lt;/b&gt;&lt;?php echo $row['AskingPrice'];?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;img src="images/&lt;?php echo $row['PropertyID'];?&gt;.jpg"&gt;&lt;/td&gt;
      &lt;td&gt;&lt;b&gt;Town or City: &lt;/b&gt;&lt;?php echo $row['Town'];?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;b&gt;Post Code: &lt;/b&gt;&lt;?php echo $row['PostCode'];?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;b&gt;Address: &lt;/b&gt;&lt;?php echo $row['PropertyAddress'];?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;b&gt;Description: &lt;/b&gt;&lt;?php echo $row['Description'];?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;b&gt;Property ID: &lt;/b&gt;&lt;?php echo $row['PropertyID'];?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;b&gt;Email: &lt;/b&gt;&lt;?php echo $row['ContactEmail'];?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;b&gt;Contact: &lt;/b&gt;&lt;?php echo $row['ContactNumber'];?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  
      &lt;td&gt;&lt;input type="button" value="Save" onClick="savePropertyButton(&lt;?php echo $row['PropertyID'] ?&gt;);" &gt;
  &lt;/tr&gt;   
  
  &lt;?php
  }
  ?&gt;
  &lt;/table&gt;
  </code></pre>