title: Remove White Space in Virtuemart 'Featured Products' Module
body: <p>I'm having some trouble figuring out how to get rid of the whitespace. I really don't know what I'm doing wrong and I don't know enough about html to know if that's the problem.</p>
  
  <p><em>Screenshots attached:</em></p>
  
  <p><strong>1)</strong> If I leave the code as is, my images overlap with the module directly below.
  <img src="https://i.stack.imgur.com/FvoAZ.jpg" alt="Original code"></p>
  
  <p><img src="https://i.stack.imgur.com/uqiDb.jpg" alt="Original code with highlights"></p>
  
  <p><strong>2)</strong> If I modify the code to make the table cell height 400px, It creates a large amount of white space. 
  <img src="https://i.stack.imgur.com/0oxPn.jpg" alt="Modified code height=400px"></p>
  
  <p><img src="https://i.stack.imgur.com/PAJlz.jpg" alt="Modified code height=400px with highlights"></p>
  
  <p><strong>3)</strong> If I modify the code to make the table cell height 1-399px, It creates either too much white space or an overlap. </p>
  
  <p><strong>MODIFIED CODE</strong> (<em>NOTE: I'm using the "horizontal" display style</em>):</p>
  
  <pre><code>&lt;table border="0" cellpadding="0" cellspacing="0" width="100%"&gt;
  &lt;tr&gt;
      &lt;span style="color:green"&gt;&lt;b&gt;&gt; &lt;b&gt;&lt;/span&gt;Click here to &lt;a href="http://localhost/joomlawebsite/index.php?option=com_content&amp;view=article&amp;id=52"&gt;&lt;span style="color:blue"&gt;&lt;b&gt;view all featured products&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;.
  &lt;/tr&gt;
  &lt;?php
  $i = 0;
  while($db-&gt;next_record() ){
      if ($i%2)
      $sectioncolor = "sectiontableentry2";
      else
      $sectioncolor = "sectiontableentry1";
  
      if( $display_style == "vertical" ) {
      ?&gt;
          &lt;tr align="center" class="&lt;?php echo $sectioncolor ?&gt;"&gt;
              &lt;td width="&lt;?php echo $width ?&gt;%"&gt;
                  &lt;?php 
                  $ps_product-&gt;show_snapshot($db-&gt;f("product_sku"), $show_price, $show_addtocart);
                  ?&gt;&lt;br /&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;?php
      }
      elseif( $display_style== "horizontal" ) {
          if( $i == 0 )
          echo "&lt;tr&gt;\n";
          echo "&lt;td height=\"400px\" width=\"$width%\" align=\"center\"&gt;";
          $ps_product-&gt;show_snapshot($db-&gt;f("product_sku"), $show_price, $show_addtocart);
          echo "&lt;/td&gt;\n";
          if( ($i+1) == $db-&gt;num_rows() )
          echo "&lt;/tr&gt;\n";
      }
      elseif( $display_style== "table" ) {
          if( $i == 0 )
          echo "&lt;tr&gt;\n";
          echo "&lt;td width=\"$width%\" align=\"center\"&gt;";
          $ps_product-&gt;show_snapshot($db-&gt;f("product_sku"), $show_price, $show_addtocart);
          echo "&lt;/td&gt;\n";
          if ( ($i+1) % $products_per_row == 0)
          echo "&lt;/tr&gt;&lt;tr&gt;\n";
          if( ($i+1) == $max_items )
          echo "&lt;/tr&gt;\n";
      }
      $i++;
  }?&gt;&lt;/table&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>