ekin
09-24-2007, 03:28 PM
1) Script Title: Animated Collapsible DIV
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm
3) Describe problem:
I'd like to have 2 or more collapsible DIVs inside another collapsible DIV. Is there a way to make the height of the containing DIV change based on the height of the DIVs inside? Ideally I'd like the containing DIV to grow and contract with the DIVs inside. Is that possible?
If not is there a way to find the total expanded height and use that even if most (if not all) of the DIVs inside start collapsed?
IE defalts to the height based on the state of collapse. Firefox defalts to a height that is based on all DIVs being expanded regardless of whether it is set that way or not.
I am very new to javascript and any help would be greatly appreciated.
Thanks
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm
3) Describe problem:
I'd like to have 2 or more collapsible DIVs inside another collapsible DIV. Is there a way to make the height of the containing DIV change based on the height of the DIVs inside? Ideally I'd like the containing DIV to grow and contract with the DIVs inside. Is that possible?
If not is there a way to find the total expanded height and use that even if most (if not all) of the DIVs inside start collapsed?
IE defalts to the height based on the state of collapse. Firefox defalts to a height that is based on all DIVs being expanded regardless of whether it is set that way or not.
I am very new to javascript and any help would be greatly appreciated.
Thanks