Accordion CSS Classes

Note: This feature is only available to Wix Studio users.

You can use the classes listed below to style your Accordion elements with CSS.

For more information on styling your elements with CSS, see Styling Elements with CSS and the MDN CSS reference docs.

Important: Element structure and undocumented class names may change without advance warning. To avoid unintended style changes to your site, select elements with the documented class names only.


Targets accordion elements. For example:

.accordion {
opacity: 75%;
display: flex;
css | Copy Code


Targets accordion title elements. For example:

.accordion__title {
text-transform: uppercase;
font-weight: 700;
css | Copy Code


Targets accordion container elements. For example:

.accordion__container {
background-color: #a2a2fc;
css | Copy Code


Targets accordion item elements. For example:

.accordion__item {
padding: 5px;
border-top-left-radius: 12px;
border-bottom-left-radius: 12px;
css | Copy Code


Targets accordion icon elements. For example:

.accordion__icon {
fill: #FF0000;
css | Copy Code

Was this helpful?