--- title: Add an Accordion with Rich Content Editor description: Add an accordion component to the canvas to design content that can be expanded or collapsed. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/employee-service-management/employee-experience-foundation/ec-rich-content-editor-accordion.html release: australia product: Employee Experience Foundation classification: employee-experience-foundation topic_type: task last_updated: "2026-03-12" reading_time_minutes: 6 breadcrumb: [Microsites, Creating employee communications, Authoring and managing employee communications, Employee Center Pro, Unified Employee Experience, Employee Service Management] --- # Add an Accordion with Rich Content Editor Add an accordion component to the canvas to design content that can be expanded or collapsed. ## Before you begin Role required: sn\_cd.content\_manager Fill in the New content form fields. See [Create rich content](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/employee-experience-foundation/ec-content-library-portal-rich-content.md) Create the page layout using modules or columns. - Modules are predefined content layouts comprised of header, paragraph text, and images. See [Add predefined content layouts with the Rich Content Editor](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/employee-experience-foundation/add-modules-rich-content-editor.md) - Columns are containers that enable you to define a custom layout. See [Add columns with the Rich Content Editor](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/employee-experience-foundation/ec-rich-content-canvas.md) ## Procedure 1. Navigate to the canvas by selecting the **Open editor** button from the **Design** tab of the **New content** form. 2. Drag and drop the accordion component into the canvas. 3. Configure accordion component behavior and toggle/button design, and add more panels. 4. Navigate to the **Settings** > **Properties** section to configure the accordion component:
| Settings field | Description |
|---|---|
| Panel behavior | |
| Expand first panel on load | Selecting this option loads the accordion with the content in the first panel visible.If you deselect this option, the accordion loads with all the panels closed. |
| Allow multiple panels to expand | Selecting this option allows employees to expand multiple panels at once.If you deselect this option, when an employee expands a panel, the currently expanded panel automatically closes. |
| Button design | |
| Style | Select the style of the accordion button, or toggle, that employees click to expand and close panels. |
| Size | Use the up and down arrows to adjust the size of the buttons. |
| Placement | Specify whether the buttons appear to the left or right of the accordion titles. |
| Color | Use the color picker \(checkered square\) to select a color or enter the color code that represents the color you want to appear.All HTML colors are supported. For more information, see [HTML color names](https://htmlcolorcodes.com/color-picker/). |
| Settings field | Description |
|---|---|
| Styling | |
| Background Color | Use the color picker \(checkered square\) to select a color or enter the color code that represents the background color you want to appear.All HTML colors are supported. For more information, see [HTML color names](https://htmlcolorcodes.com/color-picker/). |
| Advanced styling | |
| Width | Specify the value by entering a number or dragging the right side of the cell.Select the unit of measure: - px: pixel - %: percentage |
| Padding | Padding is the space between content and the border of an element. Specify the value for top, bottom, right, or left padding by entering a number. |
| Margin | Margin is the space between a row and another element/the canvas boundary. Specify the value for top, bottom, right, or left padding by entering a number. |
| Border | Edit the border around the outside of the button.**Note:** The border is the outline around the button. Width: Use the up and down arrows to adjust the width of the border. Just like the width and height, you can choose the unit of measure you prefer by selecting the single down arrow key to the left of the up and down arrows. Style: The format of the border around the button. Select the drop-down to select the type of border you want around the button. Color: The color of the border around your button. Select the color of your button using the color palette and slide bars similar to how you select your background color. |
| Border radius | Use the up and down arrows to adjust the radius of the border. Just like the width and height, you can choose the unit of measure you prefer by selecting the single down arrow key to the left of the up and down arrows. |
| Settings field | Description |
|---|---|
| Styling | |
| Text style | Allows you to quickly change the look of your text by selecting a pre-formatted choice. You can select different headlines or paragraph styles.Headline 1-6 corresponds to h1 - h6 HTML tags. |
| Text color | Use this drop-down to change the color of your text. Your choices are: - Primary: The primary color defined by your portal theme. - Muted: The color defined by your portal theme. - White: Changes the color of your text to white. This is useful when using a background color other than white. Text color assigns predefined CSS classes for text color. |
| Display | Configure the appearance of multiple components within the same column, such as an image and a text component. Select from the following options:- **Top and bottom** \(default\): Image appears above the other component. - **Side by side**: Image appears with the other component next to it. **Note:** For best results, set the same display for the components. For example, if you have an image and text components in a column and want the image to appear on the left and the text to appear at the right, change the **Display** settings for both components to **Side by side**. |
| Align | Determines the horizontal alignment of your text. Choose from:- Left justify - Center justify - Right justify - Justify \(text is aligned with both margins\) |
| Advanced styling | |
| Padding | Padding is the space between content and the border of an element. Specify the value for top, bottom, right, or left padding by entering a number. |
| Margin | Margin is the space between a row and another element/the canvas boundary. Specify the value for top, bottom, right, or left padding by entering a number. |
| Font name | Defines the font face used to render characters.Click the drop-down arrow to select a different font. |
| Font size | Sets the size of the font. |
| Font weight | Determines how bold or light your text appears.Click the drop-down arrow to select a different weight. |
| Line height | Sets the vertical distance between two lines of text. |
| Font color | Overrides the font color from your portal theme.To select a color, enter the hex code or click the color picker \(grey square to the right of the font color\) and select a color from the color palette. |