How To Make Divi Buttons Fullwidth Tutorial by Pee Aye Creative

How To Make Divi Buttons Fullwidth

This quick Divi Pro Tip will show you how to make a Divi button fullwidth to fill the width of the column and also how to center the button text.
missing sizing toggle settings in the button module

The steps are quite easy. Go to your Button module settings. Proceed to the Advaned tab and click to open the Custom CSS toggle. Then look for Main Element. That is where you need to past or write the following line of CSS:

width: 100%;
make divi buttons fullwidth

Now you probably notice an issue. The text is not centered. This looks bad to me, so let’s go in and add a second line of CSS to solve that.

make divi buttons fullwidth and centered

Beautiful! It doesn’t get any easier than that, does it! Now your Divi buttons are fullwidth in the column and the text is centered! I hope you enjoyed this little tip!

8

Last updated May 29, 2021 @ 10:09 am

Subscribe

Each month we send out a roundup email newsletter with the latest tutorials, product updates, helpful resources, and any other industry or personal news. Occasionally we send an extra separate email here and there if we just can’t wait! So that’s what you will get if you subscribe, and you can always unsubscribe at any time if you just can’t take it anymore :)

Please share this post!

Nelson Lee Miller (aka The Divi Teacher)

Nelson is the owner of Pee-Aye Creative in the beautiful state of Pennsylvania. He loves helping small businesses, exploring outdoors, building websites with Divi, and teaching others.

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy

10 Comments

  1. Gio

    Simple but: great!!

    Reply
  2. Platt Johnson

    Works well and makes a cleaner looking page design. Thanks

    Reply
  3. Ron

    Hi Nelson. Great tip but I miss the text align CSS in your post. In the video you explane it but not in this text of the post. Also live examples do not work.

    Reply
  4. Shahid Zafar

    Thank u so Much, Highly Appreciable!
    Love From Pakistan!!! 🙂

    Reply
  5. Alex Lopez

    thanks, and how about in the contact form?

    Reply
    • Nelson Lee Miller (aka The Divi Teacher)

      Hi Alex,
      That is totally different.

      /*make the contact form button container fullwidth*/

      .et_contact_bottom_container {
      width: 97%;
      }

      /*make the contact form button fullwidth*/

      .et_pb_contact_submit.et_pb_button {
      width: 100%;
      margin: 0 auto;
      }

      Reply
  6. Bruno

    Thanks a lot :))

    Reply

Submit a Comment

Your email address will not be published.

Recent Posts

Pin It on Pinterest

0

Your Cart