The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Collapsible Lists
Cathy D
post 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...?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Cathy D
post Oct 11 2006, 03:33 AM
Post #3





Group: Members
Posts: 2
Joined: 11-October 06
Member No.: 403



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!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 08:00 PM