Collapsible Lists |
Collapsible Lists |
Cathy D |
Oct 11 2006, 02:48 AM
Post
#1
|
Group: Members Posts: 2 Joined: 11-October 06 Member No.: 403 |
My first post! I'm building a site for a client, and the spec is not to use any Flash or scripting. But they would like a collapsible menu - where a user clicks on a title, and a sub-list of menu items appears below. Another click on the title and that sub-list disappears. I know it's possible to produce a pop-up sub-list on hover using css ul:hover - but what about producing the sub-list on click, and leaving the sub-list there until the next click? Is there some really really clever way of doing this, without using javascript or any form of scripting...? |
Darin McGrew |
Oct 11 2006, 03:19 AM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
CSS can't respond to selecting links the way you want.
Without JavaScript, you'll need to use normal links: Following a menu link takes you to a new page that has the selected menu open, but is otherwise the same as the first. Personally, I'd just link to a navigation page, rather than try to put a fancy menu on every page on the site. |
Cathy D |
Oct 11 2006, 03:33 AM
Post
#3
|
Group: Members Posts: 2 Joined: 11-October 06 Member No.: 403 |
CSS can't respond to selecting links the way you want. Without JavaScript, you'll need to use normal links: Following a menu link takes you to a new page that has the selected menu open, but is otherwise the same as the first. Personally, I'd just link to a navigation page, rather than try to put a fancy menu on every page on the site. Many thanks for that - off now to investigate which of the alternatives is best! |
Lo-Fi Version | Time is now: 26th April 2024 - 08:00 PM |