![]() |
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 |
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.
|
Thanks so much, Padraic. :)
|
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 |
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. |
Quote:
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 { |
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> |
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 $ *} |
Is this the beta version you are working with?
|
Unfortunately yes. *****banging against the wall*****
|
Ah sorry, can't help you with that then :(
|
I appreciate the help anyway. Have a wonderful weekend. :)
-Tuan |
The same concept applies I'm sure, I'm just not familar with the style sheet or templates in the beta version yet. What you want to do is surround the code for the category name with a div tag that calls the style:
<div class="something"> Category text here </div> |
Re: How to resize the "Categories" box
you are correct Padraic, I was able to do it in customer/category.tpl, I just removed the <font> and made a <div> - Code:
{else} {if $config.General.root_categories eq "Y"} {foreach from=$categories item=c} <div class="CategoriesList"> <a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category}</a></div><br /> {/foreach} {else} {foreach from=$subcategories item=c key=catid} <font class="CategoriesList"><a href="home.php?cat={$catid}" class="VertMenuItems">{$c.category}</a></font><br /> {/foreach} |
All times are GMT -8. The time now is 10:50 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.