The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Accordion within Anything Slider – height issues Re: Accordion within Anything Slider – height issues


Thanks again for your excellent help. The new code you gave me works pretty well.

I have run into a couple of issues, though, and being the script n00b that I am, I can’t quite see how to adapt what you’ve done to fit what I need.

Issue #1: Now that all of the regular and dummy content is in, the first slide is much taller than the others, since so many boots are in that category. Problem is, If I set the height to that slide it doesn’t shrink to the others’ heights.

Issue #2: I’m having trouble with the bottom border getting cut off of the slides. No matter what height I set in the CSS or the script it seems to clip of the extra 2px that the border adds. I’ve tried adding padding here and there, but to no avail.

Icing on the cake issues: it would be awesome to add hash tags to the url for each slide, so coming back to the page would show whatever one was active at the time. I set hashtags: true, in the script, but it doesn’t seem to do anything. And it would be way cool to have whichever accordion section was open still be open also, but I’m not sure if I’m asking for miracles there.

Work in progress still here.

Thank you thank you thank you.

EDIT: Looks like the FOUC is back, too…weird. It was gone until I started working on this thing…I have the height and overflow settings on the UL.