Click here to register.
      
PBWG Banner


     Web Design, Templates, and Themes > Can a WebGUI navigation generate li's of different sizes?

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

User kurios63
Date 8/27/2008 2:40 am
Views 618
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: Site paid for by advertizing by Klaus - Fri @ 02:27am

Smoke Test for WebGUI (Stable) (2008-11-21) by botaction - Fri @ 12:37am

Re: Site paid for by advertizing by pwrightson - Thu @ 10:59am

Re: Site paid for by advertizing by JT - Thu @ 08:58am

Re: Regelmäßiger Termin für Usertreffen in der Rhein-Neckar-Region by Klaus - Thu @ 06:11am

Smoke Test for WebGUI (Stable) (2008-11-20) by botaction - Thu @ 12:00am

Smoke Test for SVN (2008-11-20) by botaction - Thu @ 12:00am

Re: Improving page layouts by fdillon - Wed @ 08:38pm

Re: Improving page layouts by knowmad - Wed @ 08:25pm

Re: Site paid for by advertizing by knowmad - Wed @ 08:07pm

Re: SSL Configuration? by knowmad - Wed @ 07:51pm

Re: The Death of the Collaboration System by preaction - Wed @ 07:39pm