How to style and adjust the width of the dropdown menu in Divi with CSS
Do you want to style your dropdown menu in Divi a little different than the style options that are available? In this tutorial, I’ll show you how you can accomplish that with CSS.
At the end of this post I’ll also show you how you can increase the width of the dropdown menu.
You can see a live demo here.
CSS styles for your dropdown menu
First you need to create a dropdown menu. Then you can add this CSS for the styling. place the CSS code in Theme options > Custom CSS or in your child theme if you are using one.
Note: I have added some notes between /* */ so you know where you can change the colors and font size.
Increase the width of the dropdown menu
Sometimes the text of your dropdown menu breaks on another line, to avoid this we can increase the width of the dropdown menu. Add the following CSS code in Theme options > Custom CSS
Note: If you want to change the width to something else then follow the notes between /* */