PDA

View Full Version : Bullet List Accordion Menu Gap



jumpmantang
03-19-2009, 06:39 AM
Bullet List Accordion Menu

http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm

is it possible to reduce the space between 2 top level menu (or i should say UL)? I tried to look at the CSS code and reduced the number for margin-bottom: 0px; /*bottom spacing between each UL and rest of content*/, but no luck.

also how can i default the script to collapse all menu when page load, because the first expandable link open whenever i enter the page. I changed the defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content to [], but still not working.

ddadmin
03-19-2009, 07:04 PM
Regarding #1, there are actually many threads on this already. Please do a search. In a nutshell, it really depends on the rest of the CSS on your page. You'll need to play around with the CSS definitions.

Setting defaultexpanded: [] should do it, provided that you also have persistence turned off inside the script.