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)
-   -   How to resize the "Categories" box (https://forum.x-cart.com/showthread.php?t=19247)

TL408 01-13-2006 12:41 PM

How to resize the "Categories" box
 
I've looked at the "skin1.css" and "customer/categories.tpl" file but couldn't find out where to resize the "Categories" box. Any help would be greatly appreciated.

Thanks
-Tuan

balinor 01-13-2006 12:42 PM

It is menu.tpl that controls the categories in the side menu, and that defaults to the width of the table cell in home.tpl.

TL408 01-13-2006 12:51 PM

Thanks so much, Padraic. :)

TL408 01-13-2006 01:14 PM

Oh....how about the spacing/padding between each line in the "Categories" box? Is it in the skin1.css file? I can't find it. Thanks again for your help.

-Tuan

balinor 01-13-2006 01:17 PM

Between each category name you mean? That is just a
tag in customer/categories.tpl. You would need to add a padding element to the CategoriesList class to use padding.

TL408 01-13-2006 01:26 PM

Quote:

Originally Posted by balinor
Between each category name you mean? That is just a
tag in customer/categories.tpl. You would need to add a padding element to the CategoriesList class to use padding.

Yes, between each category name. I want some space between them, but not as much as a line using the
tag.

I edited the skin1.css file and added the codes below, using the padding element. However, I did not notice any changes between each category.

Code:

.CategoriesList {
FONT-SIZE: 13px;
Font-Weight: Bold;
PADDING: 5px;


balinor 01-13-2006 01:30 PM

Probably due to the lovely <font> tags X-Cart still uses :( Try replacing this in categories.tpl:

<FONT class="CategoriesList">

with this:

<div class="CategoriesList">

also replace the closing </font> tag with </div>

TL408 01-13-2006 01:38 PM

Hmmm.....can't find that line anywhere in the categories.tpl file under the "customer" folder. Here is what I have.

Code:

{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 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}
{if $config.General.root_categories eq "Y"}
<div id="categories">
{foreach from=$categories item=c}
{$c.category}

{/foreach}
</div>
{else}
<div id="categories">
{foreach from=$subcategories item=c key=catid}
{$c.category}

{/foreach}
</div>
{/if}
{/if}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}


balinor 01-13-2006 01:46 PM

Is this the beta version you are working with?

TL408 01-13-2006 01:51 PM

Unfortunately yes. *****banging against the wall*****


All times are GMT -8. The time now is 10:45 PM.

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