X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Why is my table way down the page? (https://forum.x-cart.com/showthread.php?t=23295)

Shaun 07-15-2006 06:44 AM

Why is my table way down the page?
 
So I created a simple table to align a graphic and some text - http://www.streetortrack.com/Ford-style-universal-ALL-PRO-radiators-c-1214.html and dropped this html into the category 'description' in x-cart admin:

Code:

<table>
  <tr>
    <td valign="top">
    <p align="center">
    [img]files/images/northern/CR5145index.jpg[/img]</td>
  </tr>
  <tr>
    <td>
    The Ford style universal fit radiators feature an upper right inlet and a lower left outlet. They will work with any engine, however you will find these radiators more convenient if your hoses already attatch to the same locations. These radiators feature a 7 plate all aluminum high performance transmission cooler and can be used in either manual or automatic vehicles.</td>
  </tr>
</table>


Any ideas on why there is a huge white space at the top?

Thanks!

balinor 07-16-2006 03:23 AM

Looks like you already fixed it

Shaun 07-16-2006 05:39 AM

Not exactly. I just put the text outside the table:

Code:

The Ford style universal fit radiators feature an upper right inlet and a lower left outlet. They will work with any engine, however you will find these radiators more convenient if your hoses already attatch to the same locations. These radiators feature a 7 plate all aluminum high performance transmission cooler and can be used in either manual or automatic vehicles.
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
  <tr>
    <td width="100%">
    <p align="center">
    [img]files/images/northern/CR5145index.jpg[/img]</td>
  </tr>
</table>


No matter what I seem to do with the table it always appears with a huge gap...

balinor 07-16-2006 05:43 AM

In Customer/main/subcategories.tpl, try replacing this:

{$current_category.description|regex_replace:"/[\n]/":"
"}



with this:

{$current_category.description}

Shaun 07-16-2006 06:01 AM

That was it!

Thanks!


All times are GMT -8. The time now is 09:27 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.