Center Button On Section

How do I center a button?

Hi @caseyv22 ,

Thank you for reaching out to us. Please go to the Customize tab of the button element and add a class called centered then add the CSS code below to X > Launch > Options > CSS:

.centered {display: block; margin: auto; max-width: 250px;}

Change the max-width: 250px as per your need. Alternatively you can follow this thread as well https://theme.co/apex/forum/t/centering-buttons-in-a-row-column/42326

Another way to center the button along with the content is to select Text Align Center in a section’s settings (see screenshot)

Hope this helps!

Wow silly me! The Text Align is so simple, thanks!

You are most welcome. :slight_smile:

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