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)
-   -   Category text ignoring padding (https://forum.x-cart.com/showthread.php?t=22335)

dazybabes 06-07-2006 06:25 AM

Category text ignoring padding
 
Does anyone know why this is happening.

Im trying to format the categories.tpl and have set up some styles along with css to compliment them but whenever the category/subcategory name is long and breaks onto two lines the second line always ignores the padding and goes right to the end??

is this something Im overlooking or has anyone the answer to my prayers?

balinor 06-07-2006 06:27 AM

Need to know exactly how you have it formatted....and an example url would help.

dazybabes 06-07-2006 06:45 AM

http://www.kitinfo.co.uk/kitwarehouse/home.php?cat=2

above is an example of problem.

have padded the styles 10px on left yet when its long it breaks onto next line.

Is there a way of getting it to line up should it return?

balinor 06-07-2006 06:52 AM

Yes, but what is the exact code you are using in the category menu?

dazybabes 06-07-2006 07:01 AM

categories.tpl

Code:

{capture name=menu}
{if $active_modules.Fancy_Categories ne ""}
{include file="`$fancycategories_config.modules_path`/fancy_categories.tpl"}
{else}
{if $config.General.root_categories eq "Y"}
{section name=cat_num loop=$categories}
{if $cat eq $categories[cat_num].categoryid || $current_category.parentid eq $categories[cat_num].categoryid}
<font color="#FF0000">{$categories[cat_num].category}</font>
 
{else}
{$categories[cat_num].category}<HR size="1" color="#FFFFFF" noshade class="CatBoxHr"> 
{/if}
{if $cat eq $categories[cat_num].categoryid || $current_category.parentid eq $categories[cat_num].categoryid}
{section name=subcat loop=$allcategories}
{if $allcategories[subcat].parentid eq $categories[cat_num].categoryid}{if $cat eq $allcategories[subcat].categoryid}<font color="#FF0000">{/if}{$allcategories[subcat].category}{if $cat eq $allcategories[subcat].categoryid}</font>{/if}
 
{/if}
{/section}
<HR size="1" color="#FFFFFF" noshade class="CatBoxHr">
{/if}
{/section}
{else}
{section name=cat_num loop=$subcategories}
<SPAN class="CatBox1">{$subcategories[cat_num].category}</SPAN>
 
{/section}
{/if}
{/if}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }


balinor 06-07-2006 07:05 AM

And which class to you have the padding applied to?

dazybabes 06-07-2006 07:09 AM

Code:

.CatBoxtext
{
    FONT-SIZE: 15px;
        COLOR: #ffffff;
        text-align:center;
        TEXT-DECORATION: none;
        padding-left:10px;
}


Code:

.SubCatBoxtext
{
    FONT-SIZE: 13px;
        COLOR: #ffffff;
        text-align:center;
        TEXT-DECORATION: none;
        padding-left:20px;
}



All times are GMT -8. The time now is 04:44 AM.

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