Help - Search - Members - Calendar
Full Version: Collapsible Lists
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
Cathy D

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
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
QUOTE(Darin McGrew @ Oct 11 2006, 03:19 AM) *

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!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.