5 replies [Last post]
pixeline
Offline
Regular
Brussels, Belgium
Last seen: 18 years 23 weeks ago
Brussels, Belgium
Timezone: GMT+1
Joined: 2004-07-02
Posts: 30
Points: 0

hello everyone !

i would like to make my menu (a nested unordered list of links) display horizontally.

now, nested ul should only be displayed when parent li is selected.

possible ?

To help you visualise what i want i've attached an example when user is on the 4th level of the depth of the menu.

a simple example : in the illustrated case, the english version is displayed.
clicking on spanish would hide the english and display level 1 of the spanish menu.
clicking on a level1 link would unhide level 2 of the spanish menu.

thanks !

........................................ . . . . .
p . x e l | n e
Brussels web designer pixeline

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 8 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

complex horizontal nested menu

Do you want onclick or rollover behaviour?

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

pixeline
Offline
Regular
Brussels, Belgium
Last seen: 18 years 23 weeks ago
Brussels, Belgium
Timezone: GMT+1
Joined: 2004-07-02
Posts: 30
Points: 0

complex horizontal nested menu

hello Tyssen !

on click would be okay , but no javascript !

........................................ . . . . .
p . x e l | n e
Brussels web designer pixeline

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 8 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

complex horizontal nested menu

pixeline wrote:
on click would be okay , but no javascript !

Well, unfortunately, the only thing I know of like what you're after does require a bit of javascript, but it is only minimal: DOM-scripted lists.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

pixeline
Offline
Regular
Brussels, Belgium
Last seen: 18 years 23 weeks ago
Brussels, Belgium
Timezone: GMT+1
Joined: 2004-07-02
Posts: 30
Points: 0

complex horizontal nested menu

thanks for your efffort Tyssen. I found a closer match , which also uses javascript and does not quite do litteraly what i would like, but looks like a good base to work on with:

http://www.alistapart.com/articles/complexdynamiclists/

Of course one might ask why i don't simply add on each page the relevant menu on that page.
well, simply because i would like this menu to be fed from a database.

i've just started working on this, i hope in a few days , i can come up with a good, compliant solution. If anyone has an idea, please post!

°-]

alex

........................................ . . . . .
p . x e l | n e
Brussels web designer pixeline

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 8 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

complex horizontal nested menu

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference