How to horizontally align the Divi fullwidth header buttons

Oct 19, 2017 | CSS tweaks, Divi Theme, Fullwidth Header

Using two buttons on a divi fullwidth header, but finding them a bit off-centre and not quite neatly aligned on a mobile screen?

Use the following CSS snippet to fix:

/* Align fullwidth header buttons on mobile */

.et_pb_fullwidth_header .et_pb_fullwidth_header_container .header-content a.et_pb_button {
  margin: 20px 15px 0px;

Where to paste the CSS snippet

Navigate to Divi>Theme Options and at the bottom of the default “General” tab, paste the CSS snippet into the “Custom CSS” box and save changes.


Child Themes

We recommend using a child theme. It is your insurance against losing your custom work in updates.

Click here for instructions on adding a basic Divi child theme with a stylesheet (for custom CSS).

Click here to learn more about child themes and getting the most out of the Divi theme.


Want more module options for your Divi website?

Check out our Custom Modules for Divi
Browse Custom Modules