Streaming live at 10am (PST)

Dropdown as accordion - Broken text

I used dropdown components to build an accordion because I need each dropdown to close when another is open. The problem is my dropdown text is a bit long so the text gets cut off on tablet and mobile.
I’d like the text to break in several lines, as many as needed, and the dropdown to resize accordingly.


Any help is appreciated!
Here’s my public link:

Add this snippet to custom code area

     .w-dropdown-toggle {
        white-space: normal;

It should help


Thank you @sabanna!
Can’t see any change inside the editor but works perfectly on published site.

For be able to see changes in the Designer mode you can add the same code in the embed widget.
Maybe now this trick makes no sense but in the future may be useful :wink:

Didn’t know that! Thanks :smile:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.