Professional Documents
Culture Documents
About the Accordion widget Insert and edit the Accordion widget Customize the Accordion widget
To the top
A. Accordion panel tab B. Accordion panel content C. Accordion panel (open) The default HTML for the Accordion widget comprises an outer div tag that contains all of the panels, a div tag for each panel, and a header div and content div within the tag for each panel. An Accordion widget can contain any number of individual panels. The HTML for the Accordion widget also includes script tags in the head of the document and after the accordions HTML markup. For a more comprehensive explanation of how the Accordion widget works, including a full anatomy of the Accordion widgets code, see www.adobe.com/go/learn_dw_spryaccordion. For a tutorial on working with the Accordion widget, see www.adobe.com/go/vid0167.
To the top
To the top
.Accordion or .AccordionPanel
panel) Text in accordion panel tabs only Text in accordion content panels only 1 .AccordionPanelTab font: Arial; fontsize:medium;
.AccordionPanelContent
.AccordionPanelTab
Background color of accordion content panels Background color of the open accordion panel
.AccordionPanelContent
.AccordionPanelOpen .AccordionPanelTab
backgroundcolor: #EEEEEE; (This is the default value.) color: #555555; (This is the default value.) color: #555555; (This is the default value.)
.AccordionPanelTabHover
.AccordionPanelOpen .AccordionPanelTabHover
1. Locate the .Accordion CSS rule by opening up the SpryAccordion.css file. This is the rule that defines properties for the main container element of the Accordion widget. You can also locate the rule by selecting the Accordion widget, and looking in the CSS Styles panel (Window> CSS Styles). Make sure the panel is set to Current mode. 2. Add a width property and value to the rule, for example width: 300px;. More Help topics The CSS Styles panel in Current mode
teamgmis
I added an accordion widget and it works on one site page while same code won't work on another page. It works here: http://dev.triptocollege.org/educator/Things-I-Should-Be-DoingNow/K-5 th-Grades.aspx Does not work here: http://dev.triptocollege.org/educator/Things-I-Should-Be-DoingNow.asp x Yet both pages have identical code (with absolute links to the CSS and JS files). Can anyone shed some light on a solution?
Reply
in response to teamgmis
Jon Fritz II
Your pages are not using identical code. It's very similar, but not identical. The div with class="sidebar-content" is causing the problem. It appears you have used 795px of paddding to position the Check It Out content on the far right of your page. That now over 795px wide <div> tag is positioned over the top of your links in your accordion which makes it impossible for you to click on them since clicks go to the mostly empty div over the top of it. Change the position:absolute to position:relative. Remove the 795px padding and add a left:795px to position it correctly.
Reply
teamgmis
Awesome! Thank you for the quick response and the helpful information. It's all good now.
2acremeadow
I am currently using the accordion widget. The only thing that is not working is the content panel will not open enough to see all the content. I am following the Adobe Dreamweaver CS6 classroom in a book and have even compared my code to the code on the CD for the lesson that includes the accordion. I get the scroll bar (which I do not want) even when I do not have scroll selected. I have assigned a height (450px) and overflow: auto; to the content panel, but it does not open tall enough. Can you please provide any suggestions for fixing the problem? Thanks
Reply
in response to 2acremeadow
Reply
2acremeadow
Thank you so much! Sorry for the late reply but I am new to this support area and could not find how to reply. Your answer worked perfectly and since I am not familiar with java script, I had not looked there. I went into that file and changed the result to true. Thanks again.
Reply
Melanie @Laropin
Hello, How do you remove the light blue border that surrounds the widget? I can't find it as a border in the css and I'd like to remove it. Also, where do I add the code set out in the previous post? I'd like my content panels to expand to the full size of the text box in the particular tab (so resizing for each tab). How do I achieve that? Thanks Melanie
Melanie @Laropin
Hello, I have the code for the adjusted content height. I'd really like to know how to get rid of the light blue border around the widget. I had the same problem on the tabbed panel widget tabs. I'd like that blue line not to feature in my styling but I can't find what's causing it to appear in the css. Thank you.
Reply
In SpryAccordion.css which can be found in the SpryAssets sub-folder, go to line 25. Add outline: none; so that the whole looks like
.Accordion {
border-left: solid 1px gray; border-right: solid 1px black; border-bottom: solid 1px gray; overflow: hidden; width: auto; outline: none; }
I must warn you though, the blue halo is a built-in accessibility feature.
Reply
Melanie @Laropin
Reply
fridgedoctor
I have a question regarding using the accordion widget on a template based webpage that also includes the jsocial widget which provides the social icon link buttons to all the media sites. I have the jsocial widget nested insided a non editable region of my template, so it shows up on every web page. There must be some sort
in response to fridgedoctor
fridgedoctor
I should also add that the social icons have disappeared from ALL the pages, not just to the page I added the accordion widget. Thanks again.
Reply
Go to original post
Twitter and Facebook posts are not covered under the terms of Creative Commons. Legal Notices | Online Privacy Policy