The accordion tool allows content to be displayed in a stacked format on a web page.
Accordions can make content harder to find and navigate. They require extra clicks, which may confuse users and hide important information. This is especially challenging for users with disabilities, as hidden content creates access barriers.
Do not use accordions for content needed by most visitors.
Accordions panels must be nested inside an accordion.
Do not use accordions in multi-column layouts. Accordions in columns do not meet accessibility standards because they cannot be displayed with "Expand all | Collapse all" links.
Watch a tutorial video to help you understand how to create and adjust accordions in CMS Lite.
Work with accordions in CMS Lite
Step-by-step instructions for B.C. government content editors on how to create a web accordion using the CMS Lite application. Review the Web Style Guide for the most current information.
To insert an accordion:
Accordions must be displayed with the Expand all | Collapse all links to meet accessibility standards.
To add a panel to an accordion:
Maximizing the editing field makes it easier to rearrange panels, but save your work first.
To reorder the panels:
Alternately, you may right-click the top-left corner of the panel to cut and paste it into a new location.
To reorder multiple accordions:
Alternately, you may right-click the top-left corner of the accordion to cut and paste it into a new location.
You can use an anchor link in the title section of an accordion panel. When you link to the anchor, the panel is automatically expanded.
This is a demonstration of using an anchor tag in the title of an accordion panel.
For the purposes of this demo, the following links will open in a new window (normally we always open web pages in the same browser window):
When creating accordions, CMS Lite may create a gap between the accordions and the next section of content.
Use this workaround to remove the gap: