Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Decrease gap size in catagory names

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-04-2007, 02:57 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default 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
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #2  
Old 10-04-2007, 06:34 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-05-2007, 04:04 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default 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
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #4  
Old 10-05-2007, 04:56 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-05-2007, 09:54 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default 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
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020