View Single Post
  #8  
Old 04-29-2008, 03:47 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Horizontal Category Links

Try replacing this part of your code below...
Code:
{if $config.General.root_categories eq "Y"} {foreach from=$categories item=c} <a href="home.php?cat={$c.categoryid}" </a> <font color="99cccc">{$c.category}{if not %categories.last%}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;{/if}</font>{/foreach} {else} {foreach from=$subcategories item=c key=catid} <font color="99cccc">{$c.category}{if not %categories.last%}&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;{/if}</font> {/foreach} {/if}

With this...
Code:
{if $config.General.root_categories eq "Y"} <span class="catnav"> {foreach from=$categories item=c name=thisloop} <a href="home.php?cat={$c.categoryid}"{if $smarty.foreach.thisloop.last} class="navlastitem"{/if}>{$c.category}</a> {/foreach} </span> {/if}

Check if it is okay. And if it is, then add this to your css file.
Code:
.catnav A, .catnav A:link, .catnav A:visited { color:#99CCCC; margin-right:20px; text-decoration:none; } .catnav A:hover { color:#FF0000; text-decoration:underline; } .catnav A.navlastitem { margin-right:0px; }

Hope this helps.
__________________
Doms
kube v4.1.9
Reply With Quote