Button Spacing

Hi Everyone!

I have some custom liquid code that puts two buttons underneath two columns. I just want to align the buttons in the center of each column. Having some trouble, I’ve tried to use “margin” to align them but they show up off centered on the store page. I tried naming the classes different to reference them in CSS separately but no luck.

Code:

Any suggestions? Any help would be appreciated! Thank you!

Hi @VicBrew1 put them in a wrapper and style that wrapper to text-align: center;

be aware that your trying to relatively center separate elements heirarchies so it may look good on your screen but may break on other screen sizes.

The proper way to do this is to actually customize the target section to have buttons.

If you need this styled further or sections customized for you then contact me for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Sorry I tried this but it didn’t work. Maybe I didn’t do it right?