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

Category text ignoring padding

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-07-2006, 06:25 AM
 
dazybabes dazybabes is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 70
 

Default 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?
__________________
X-Cart Version 4.0.3
Reply With Quote
  #2  
Old 06-07-2006, 06:27 AM
 
balinor balinor is offline
 

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

Default

Need to know exactly how you have it formatted....and an example url would help.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-07-2006, 06:45 AM
 
dazybabes dazybabes is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 70
 

Default

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?
__________________
X-Cart Version 4.0.3
Reply With Quote
  #4  
Old 06-07-2006, 06:52 AM
 
balinor balinor is offline
 

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

Default

Yes, but what is the exact code you are using in the category menu?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 06-07-2006, 07:01 AM
 
dazybabes dazybabes is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 70
 

Default

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 }
__________________
X-Cart Version 4.0.3
Reply With Quote
  #6  
Old 06-07-2006, 07:05 AM
 
balinor balinor is offline
 

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

Default

And which class to you have the padding applied to?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 06-07-2006, 07:09 AM
 
dazybabes dazybabes is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 70
 

Default

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; }
__________________
X-Cart Version 4.0.3
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 12:11 PM.

   

 
X-Cart forums © 2001-2020