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)
-   -   Decrease gap size in catagory names (https://forum.x-cart.com/showthread.php?t=34380)

a1deano 10-04-2007 02:57 PM

Decrease gap size in catagory names
 
Hi could any help i wish to decrease the gap slightly in between the catagory name, could anyone tell me which setting this is.
For v4.1.8

Many thanks

balinor 10-04-2007 06:34 PM

Re: Decrease gap size in catagory names
 
Well that's not a standard 4.1.8 layout, so we'll really need to see what you have for categories.tpl to help.

a1deano 10-05-2007 04:04 AM

Re: Decrease gap size in catagory names
 
Hi balinor

Many thanks for your help, here is the coding for the categories.tpl
Quote:

{* $Id: categories.tpl,v 1.1.2.25 2007/06/19 08:01:50 max Exp $ *}
{capture name=menu}
{if $active_modules.Fancy_Categories ne ""}
{include file="modules/Fancy_Categories/categories.tpl"}
{assign var="fc_cellpadding" value="0"}
{else}
<table cellpadding="4" cellspacing="1">
{if $config.General.root_categories eq "Y"}
{foreach from=$categories item=c}
{* BCSE - category headings *}{if $c.category_heading ne ""}<tr><td colspan=2 >

{$c.category_heading}

</td>
</tr>{/if}{* BCSE - end category headings *}
<tr>

<td valign="top"><img src="{$ImagesDir}/category_bullet.gif" width="5" height="13" alt="" /></td>


<td><a href="home.php?cat={$c.categoryid}" class="VertMenuItems"><font class="CategoriesList">{$c.category}</font></a></td>
</tr>
{/foreach}
{else} {foreach from=$subcategories item=c key=catid}
{* BCSE - category headings *}{if $c.category_heading ne ""}<tr><td colspan=2 >

{$c.category_heading}

</td>
</tr>{/if}{* BCSE - end category headings *}
<tr>
<td valign="top"><img src="{$ImagesDir}/category_bullet.gif" width="5" height="13" alt="" /></td>



<td><a href="home.php?cat={$catid}" class="VertMenuItems"><font class="CategoriesList">{$c.category}</font></a></td>
</tr>
{/foreach}
{/if}
</table>
{/if}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}


I couldn't find anything in here that helped, Carrie at BCSE has just installed their Cat mod for me, but before this was installed i couldn't find anything in caterories.tpl either to help, i did try a few setting in my css file but still nothing that helped.

Appreciate your help thanks Dean

balinor 10-05-2007 04:56 AM

Re: Decrease gap size in catagory names
 
That table is what is causing the problem, really should be using <div> tags here, but try setting the cellpadding and cellspacing to 0 first and see if that helps.

a1deano 10-05-2007 09:54 AM

Re: Decrease gap size in catagory names
 
Hi balinor

Perfect that sorted the problem out nicely i set the cellpadding to "0" and it closed the gap completely so i finaly settled on a cellpadding of "2" just a small gap....

Many thanks balinor for your help on this.

Cheers Dean


All times are GMT -8. The time now is 05:28 AM.

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