Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

White space display error in product description using tables
 
silverpenhouse
Member
 
Avatar
Total Posts:  72
Joined:  2008-02-16
Virginia
 

Hello,

Whenever I put a “table” (html: <table> ... </table>) in my product description (description & short description) I get a lot of white space b/w the table and the top of the description.

For an example check out my website: http://www.nutrig.com/protidiet-protein-bar-crunchy-cereal-caramel.html

As you can see there is a lot of space. In the product description here is the html I inster:

<tbody><tr>    <td colspan="4" valign="top"><b>N u t r i t i o n F a c t s</b></td>  </tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>  <tr>    <td colspan="2" height="1" valign="top"Serving Size1 Bar </td>    
  <
td colspan="2" align="right" valign="top"
    
Servings Per Container</td>  </tr>  <tr bgcolor="#000000">    <td colspan="4" height="4" valign="top"></td>  </tr>  <tr>    <td colspan="2" valign="top"Amount Per Serving</td>    <td colspan="2" valign="top"></td>  </tr>  <tr>    <td colspan="2" valign="top">Calories 150 </td>    
      <
td colspan="2" align="right" valign="top">Calories from Fat 50 </td>  
    </
tr>  <tr bgcolor="#000000">    <td colspan="4" height="5" valign="top"></td>  </tr>  <tr>    <td colspan="2" valign="top"></td>    <td colspan="2" align="right" valign="top"></td>  </tr>  <tr>    <td colspan="2" valign="top"Total Fat</td>    
    <
td colspan="2" align="right" valign="top">5g</td>  
    </
tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>  <tr>    <td colspan="2" valign="top"Saturated Fat</td>    
    <
td colspan="2" align="right" valign="top"2.5g</td>  
    </
tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>  <tr>    <td colspan="2" valign="top"Cholesterol</td>    
    <
td colspan="2" align="right" valign="top">0mg</td>  
    </
tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>  <tr>    <td colspan="2" valign="top"Sodium</td>    
    <
td colspan="2" align="right" valign="top">190mg</td>  
    </
tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>  <tr>    <td colspan="2" valign="top"Potassium</td>    
    <
td colspan="2" align="right" valign="top">80mg</td>  
    </
tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>  <tr>    <td colspan="2" valign="top"Total Carbohydrate</td>    
    <
td colspan="2" align="right" valign="top">15g</td>  
    </
tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>  <tr>    <td colspan="2" valign="top"Dietary Fiber</td>    
    <
td colspan="2" align="right" valign="top">7g</td>  
    </
tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>  <tr>    <td colspan="2" valign="top"Sugars</td>    
    <
td colspan="2" align="right" valign="top"><1g</td>  
    </
tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>  <tr>    <td colspan="2" valign="top"Protein</td>    
    <
td colspan="2" align="right" valign="top">15g</td>  
    </
tr>  <tr bgcolor="#000000">    <td colspan="4" height="5" valign="top"></td>  </tr>  <tr>    <td colspan="2" valign="top"Iron</td>    
    <
td colspan="2" align="right" valign="top">10% (2,000 Calorie Diet)</td>  
    </
tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>    <tr>    <td colspan="2" valign="top"Vitamin A</td>    
    <
td colspan="2" align="right" valign="top">0% (2,000 Calorie Diet)</td>  
    </
tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>    <tr>    <td colspan="2" valign="top"Vitamin C</td>    
    <
td colspan="2" align="right" valign="top">0% (2,000 Calorie Diet)</td>  
    </
tr>

    <
tr bgcolor="#000000">
      <
td colspan="4" height="1" valign="top"></td>
  </
tr>
    <
tr>    <td colspan="2" valign="top"Calcium</td>    
    <
td colspan="2" align="right" valign="top">4% (2,000 Calorie Diet)</td>  
    </
tr>  <tr bgcolor="#000000">    <td colspan="4" height="5" valign="top"></td>  </tr>  <tr>    <td valign="top"></td>    <td valign="top"></td>    <td valign="top"></td>    <td valign="top"></td>  </tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>  <tr>    <td colspan="4" valign="top"><b>I n g r e d i e n t s</b></td>  </tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>  <tr bgcolor="#000000">    <td colspan="4" height="1" valign="top"></td>  </tr>  <tr>    <td colspan="4">

                    <
p>Soy Nuggets (Soy Protein IsolateOat FlourTapioca Starch and Salt),   PolydextroseProtein Blend (Hydrolyzed CollagenWhey Protein Isolate),   GlycerinPeanut PiecesModified Palm OilChocolate Chips )LactitolChocolate   LiquorCocoa ButterSoy LecithinVanilla and Acesulfame-Potassium), Canola   OilCocoa Powder Processed with alkaliRolled 9oatsCelluloseArtificial and   Natural Flavor (Contains Caramel Color and Modified Corn Starch), Honey Powder   (HoneyWheat StarchCalcium Separate), Soy LecithinSaltEthyl Maltol,   <strong>Sucralose</strong> and Acesulfame-Potassium.</p>
                    <
strong>ALLERGY INFORMATION:&nbspTHIS PRODUCT IS MANUFACTURED IN A FACILITY   THAT USES PEANUTSOTHER NUTS AND SEEDS.</strong></td>  
    </
tr></tbody>

but as you can see, when looking at the site using the browser, it inserts a number of breaks

<br>
    <
br>
    <
br>
    <
br>
    <
br>

    <
br>
    <
br>
    <
br>
    <
br>
    <
br>
    <
br>
    <
br>
    <
br>
    <
br>

    <
br>
    <
br>
    <
br>
    <
br>
    <
br>

I can’t find this problem documented anywhere, and would really appreciate anyone’s help.

BTW: I am using v. 1.1.3 & I am inserting the HTML code directly into the description (no wysiwyg editor)

Thank You

 
Magento Community Magento Community
Magento Community
Magento Community
 
tek
Jr. Member
 
Total Posts:  3
Joined:  2008-09-21
 

I got the same problem...help!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top