Invert Menu

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
theyapps
Forum Members
Forum Members
Posts: 12
Joined: Sat Jul 12, 2008 7:57 pm

Invert Menu

Post by theyapps »

I need to use a menu like this one:

Code: Select all

{if $count > 0}
{foreach from=$nodelist item=node}<a href="{$node->url}" 
{if $node->target ne ""} target="{$node->target}"{/if}
>{$node->menutext}</a>
{if $count > ($node->index+1)} | 
{/if}
{/foreach}
{/if}
But, I need it to be backwards. So instead of Page 1,2,3 it should be Page 3,2,1 Can anyone help?
Stom
Forum Members
Forum Members
Posts: 82
Joined: Tue Jul 31, 2007 1:41 am

Re: Invert Menu

Post by Stom »

Why not just make them into a bulleted list and use something like:

Code: Select all


ul.mylist li {
float:right;
display:inline;
}

<ul class="mylist">
  <li>Third Item</li>
  <li>SecondItem</li>
  <li>FirstItem</li>
</ul>
That would work...
Post Reply

Return to “Layout and Design (CSS & HTML)”