Divi: make a button full width in container

by | 5 October 2022 | Divi, WordPress | 0 comments

Some may have noticed, but the properties of a DIvi button module lack the option to set the size that can be set in many other modules. With a bit of CSS this is also possible for a button and you can make it as wide as the container (column) it is in.

Open the properties of the button and go to the Advanced tab and enter the following CSS in the Main element section:

width: 100%;
text-align: center;