What is Document360?
A well-structured product to create a world-class knowledge base for your customers and employees. Content producers get the power, whereas content consumers get the simplicity.
Core parts
- Knowledge base portal
- Knowledge base site
- Knowledge base widget
- API documentation
```
**Outcome:**
****What is Document360?****
A well-structured product to create a world-class knowledge base for your customers and employees. Content producers get the power, whereas content consumers get the simplicity.
#### Core parts
- Knowledge base portal
- Knowledge base site
- Knowledge base widget
- API documentation
---
## Advanced customizations
You can change the accordion's appearance using custom CSS applied through **Settings** > **Knowledge base site** > **Custom CSS & JavaScript** > **CSS** tab.
### Adding a header color
Paste the following CSS to apply a background color to the accordion header. Replace `yellow` with your desired color.
```
.details-wrapper details[open] summary {
background-color: yellow !important;
border-radius: 0.75rem 0.75rem 0rem 0rem !important;
}
.details-wrapper summary {
background-color: yellow !important;
border-radius: 0.75rem 0.75rem 0.75rem 0.75rem !important;
}
.details-wrapper details:not([open]) summary {
background-color: yellow !important;
border-radius: 0.75rem 0.75rem 0.75rem 0.75rem !important;
}
```
Click **Save** when done.
### Applying a border color and dotted lines on hover
Paste the following CSS to add a dotted border that becomes solid on hover. Adjust values as needed.
```
.details-arrow {
left: 16px !important;
top: 42% !important;
transition: revert;
transform: rotate(317deg);
}
.details-wrapper details {
border: 1px dotted var(--e360-base-light-gray) !important;
transition: border 0.3s ease;
}
.details-wrapper details:hover {
border: 1px solid var(--e360-base-light-gray) !important;
}
.details-wrapper_rendered summary {
left: 19px;
position: relative;
}
.details-wrapper details[open]+.details-arrow {
transform: rotate(45deg);
}
```
Click **Save** when done.
### Adding a plus/minus icon to the accordion header
Paste the following CSS to display a `+` icon that rotates to `-` when the accordion is open. Adjust icons or transitions as preferred.
```
.details-wrapper details summary::before {
content: "+";
display: inline-block;
margin-right: 10px;
transition: transform 0.3s ease;
}
.details-wrapper details[open] summary::before {
content: "-";
transform: rotate(45deg);
}
```
Click **Save** when done.
---
## Scope and coverage
| Item | Detail |
| --- | --- |
| Supported content inside accordion body | Paragraphs, headings (H2 to H4), lists, inline HTML |
| Heading tags in `<summary>` | Supported, but may affect text alignment |
| Default state | Collapsed. Add the `open` attribute to keep it expanded by default |
| Styling support | In the unified Editor, the accordion uses the built-in block styling. In the Markdown editor, custom CSS is required for colors, borders, and icons |
| Browser support | Works in all modern browsers. May not render in all Markdown environments |
---
## FAQ
**Can I style an accordion using only Markdown?**
It depends on the editor. In the unified Editor, Markdown view renders the `<details>` and `<summary>` tags as the built-in accordion block, so it already matches the rest of your knowledge base. In the Markdown editor, the accordion uses default browser styles, and colors, borders, and animations require custom CSS applied through the Knowledge base site settings.
**What are the limitations of using Markdown for accordions?**
- **Browser support**: the `<details>` and `<summary>` elements work in most modern browsers but may not render correctly in all Markdown environments.
- **Styling in the Markdown editor**: you cannot style the accordion beyond the default browser styles without adding custom CSS.
- **Interactivity**: accordion behavior is limited to collapsing and expanding. Animations and advanced design options require CSS or JavaScript.
**How do I create a basic accordion in Markdown?**
Use the `<details>` and `<summary>` tags directly in the Markdown editor, or in Markdown view in the unified Editor. This creates a collapsible accordion without any CSS or JavaScript. For enhanced styling in the Markdown editor, add custom CSS through **Settings** > **Knowledge base site** > **Custom CSS & JavaScript**.
## Related
- [How to center align the text in Markdown](/how-to-center-align-the-text-in-markdown.md)
- [How to add extra space in Markdown](/how-to-add-extra-space-in-markdown.md)