Click here to register.
      
IRC banner


     Discuss > Web Design, Templates, and Themes

Can a WebGUI navigation generate li's of different sizes?

User kurios63
Date 8/27/2008 2:40 am
Views 656
Rating 0    Rate [
|
]
Previous · Next
User Message
kurios63

Hello,

Here is my situation:
A costumer requested a horizontal menu with menu-items of different sizes. First item 105px, second item 106px, third item 105px, fourth item 106px and so on.9 items it total.

Is it possible to do this?

Kurio

--- (Edited on 8/27/2008 2:40 am [GMT-0500] by kurios63) ---



Back to Top
Rate [
|
]
 
 
xootom

One way of doing this would be to use CSS, and give each element a unique ID using a counter.

In the navigation template:

<div class="nav" id="item<TMPL_VAR NAME="__counter__">

Then in CSS:

#item1 {
background-image: url(images/pic1.png);
width: 100px;
height: 30px;
}

etc.

--- (Edited on 27-08-2008 09:57:31 [GMT+0100] by xootom) ---



Back to Top
Rate [
|
]
 
 
knowmad

There's also an __odd__ value that could be used to do even and odd as it appears to be that type of situation. Check out the wiki for more examples.

 

William

----
Knowmad Technologies
http://www.knowmad.com

--- (Edited on 8/27/2008 11:11 pm [GMT-0400] by knowmad) ---



Back to Top
Rate [
|
]
 
 
kurios63

Excelent. Thank you both. The __ODD/EVEN__ value seems to fit best in this case.

--- (Edited on 9/1/2008 4:53 am [GMT-0500] by kurios63) ---



Back to Top
Rate [
|
]
 
 

Recent Discussions Color Key

Design:

Development:

Et Cetera:

Install/Upgrade:  

Smoketest:

Template Group:


Re: Auth memcookie by JohnRestrepo - Mon @ 12:57pm

Re: Auth memcookie by JT - Mon @ 11:31am

Auth memcookie by JohnRestrepo - Mon @ 10:40am

Re: Patch for wremonitor by JT - Mon @ 10:36am

Patch for wremonitor by knowmad - Mon @ 10:26am

Re: Synopsis search results by knowmad - Mon @ 10:19am

Synopsis search results by marieken - Mon @ 05:49am

Re: Question concerning approval workflows by preaction - Mon @ 02:05am

Re: Question concerning approval workflows by perlDreamer - Sun @ 08:03pm

Re: Help With Octal Math by perlDreamer - Sun @ 07:43pm

Re: Help With Octal Math by JT - Sun @ 04:14pm

Re: Help With Octal Math by JT - Sun @ 04:13pm

Re: Help With Octal Math by len - Sun @ 03:37pm

Re: Help With Octal Math by Mike_S - Sun @ 03:25pm