Page 1 of 1

[solved] Small navigation problem

Posted: Tue Jun 30, 2009 4:10 pm
by alya
I'm having a problem with the nav bar on my website. The boxes for the links were justified to fit in the side bar area, and they were all the same width and now they only fit the text so each one if a different length. I didn't touch it, don't know what happened, and I don't know how to fix it. Any ideas?

Here's the code, and thanks for any suggestions you have for solving this issue.


{* CSS classes used in this template:
#menuwrapper - The id for the that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the
.menuparent - The class for each that has children.
.menuactive - The class for each that is active or is a parent (on any level) of a child that is active.
.clearfix - Used for the unclickable h3 to use the entire width of the li, just like the anchors.*}
{if $count > 0}


{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}

{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}

{repeat string="" times=$node->prevdepth-$node->depth}

{elseif $node->index > 0}
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
current == true}
haschildren == true}
url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}{/foreach}

{repeat string="" times=$node->depth-1}


{/if}



Thanks,

Alya



[solved] I removed the extra CSS templates that had been added that did not relate to the navigation bar.