So... the above routine works just fine. I have to dress up the css and "make it pretty", but the accordion capabilities are working.
But - when I try to add content in left/right containers then there are problems. Specifically when I change the html to the following:
Once I add the "right" container the accordion malfunctions. Both left and right containers float the way they should. But the accordion container itself will not stay open - it folds back up and the left and right container content is still visible and "bleeding into" the accordion header below.
And here is the kicker. The reason I decided to build my own little accordion from scratch is because every accordion plugin I tried has the same problem when I add the right container. Some of the plugins even malfunctioned when I used any class that had float attributes assigned.
Does anyone here know why accordions don't function with left-right floating elements. I've tried floating <div>, <span>, and <ul> elements. The results are always the same.
- Floating elements bleed into the next accordion header.
- Active Accordion content element folds back up - even though content is still visible.
Any advice on this matter would really help.
Thanks Much:
Pavilion