Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

spry accordion panel

New Here ,
Jan 23, 2017 Jan 23, 2017

Hi, I am working on a photography website. I created 5 accordion panels with Dreamweaver cs6 for the different fields. In the accordion panels, there are ca. 30 images. The panel height and with is auto, so I don't use fixed panel heights. My problem is that when I open the next panel, it opens in the middle, not on the top where I want. Is there any solution for this? (I don't want to use fixed panel heights if it is possible) Thanks!

387
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 23, 2017 Jan 23, 2017

My problem is that when I open the next panel, it opens in the middle, not on the top where I want. Is there any solution for this?

No.  That's not how accordions work.   For what you want, you can use AJAX calls to load content dynamically.

https://css-tricks.com/rethinking-dynamic-page-replacing-content/

FYI: Spry was removed from DW CC.  The code has not been updated since 2006.  Adobe abandoned Spry in late 2012.   Most people have moved away from Spry Widgets to other more modern solutions.

Nan

...
Translate
Community Expert ,
Jan 23, 2017 Jan 23, 2017

If you are using an accordion panel only the one on the top will always be at the top.  What is happening with an accordion is that the content area is expanding upon clicking.  It's not actually changing the order in which the results are displayed.  If you want all of the content to replace the existing content in the same position, you might want to consider trying tabs instead of an accordion.  If this isn't it at all and you think there is an error with the way it is working it would be best to post a link to the page in question.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 23, 2017 Jan 23, 2017
LATEST

My problem is that when I open the next panel, it opens in the middle, not on the top where I want. Is there any solution for this?

No.  That's not how accordions work.   For what you want, you can use AJAX calls to load content dynamically.

https://css-tricks.com/rethinking-dynamic-page-replacing-content/

FYI: Spry was removed from DW CC.  The code has not been updated since 2006.  Adobe abandoned Spry in late 2012.   Most people have moved away from Spry Widgets to other more modern solutions.

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines