How to center a Paypal button in a custom HTML block

Bailey22
New Member
1 0 2

I have a paypal donate button embed code but it is automatically left aligned and I want it to be centered. I have tried many different things to get it centered but just cant make it work. Please help!

<form action="https://www.paypal.com/donate" method="post" target="_top">
<input type="hidden" name="hosted_button_id" value="3YZEQWPE7U6N2">
<input type="image" src="https://cdn.shopify.com/s/files/1/0587/3670/5702/files/Donate-PNG-Image-93228.png?v=1634849333" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

Replies 2 (2)
dmwwebartisan
Shopify Partner
9824 2236 3077

Please share your store URL where this code you placed. We have to check page elements and center the button accordingly. 

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
KetanKumar
Shopify Partner
24923 2498 9041

@Bailey22 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing