How do i set | in menu UL?

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
sander123
Forum Members
Forum Members
Posts: 18
Joined: Thu Apr 22, 2010 9:13 am

How do i set | in menu UL?

Post by sander123 »

heey!

any know how i set a | in the menu UL

Home  |  Contact?




.......................................
Sorry for bad english!:P
Mantlet
Forum Members
Forum Members
Posts: 114
Joined: Fri Apr 28, 2006 9:42 am
Location: Haarlem - Netherlands

Re: How do i set | in menu UL?

Post by Mantlet »

Hi Sander,

You need to edit the menumanager for that. If you use a default menu template, you can import it into the database. After that, it is editable.

Now you need to find out where the closing tag of all the nodes is specified. Before the closing tag, you can simply add the character you want in the code. It will then be repeated for every closing tag that's in your menu.

Off course, where the closing tag is, depends on the template you're using.

Cheers from another Sander
User avatar
stijlXpres
Forum Members
Forum Members
Posts: 137
Joined: Tue May 05, 2009 12:10 pm
Location: Raalte, the Netherlands

Re: How do i set | in menu UL?

Post by stijlXpres »

Believe it or not, this is Sander #3...,

I mostly use the cssmenu.tpl from the menumanager and import it into the database.

Then I change this line:

Code: Select all

{elseif $node->index > 0}</li>
into:

Code: Select all

{elseif $node->index > 0}</li><li>|</li
As you see I add another list-item, which makes the styling easier to control. When you use the solution of Sander #2, you might have trouble with the spacing on both sides of the '|'.

Good luck!
Post Reply

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