2 replies [Last post]
Gen
Offline
newbie
Last seen: 13 years 32 weeks ago
Joined: 2005-08-09
Posts: 9
Points: 0

I am trying to create an expandable menu. Right now the code I am using defines the list items with an image next to them (instead of a bullet, etc.) - is there any way to make this custom text, i.e., a plus sign when folded up and a minus sign when expanded, or do I have to just use an image of a plus and minus sign?

dbowne
Offline
Enthusiast
Washinton DC
Last seen: 15 years 43 weeks ago
Washinton DC
Joined: 2003-05-22
Posts: 53
Points: 0

See example

Gen,

Yes. You can use the following example to figure this one out.

http://www.thebownes.com/dennis/playground/dhtml/hide-show-div-onClick.html

dbowne

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

Expandable/"tree" menu - using a plus sign in a li

Another, more in-depth tutorial here.

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