How to center a Paypal button in a custom HTML block

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="" method="post" target="_top">
<input type="hidden" name="hosted_button_id" value="3YZEQWPE7U6N2">
<input type="image" src="" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button">
<img alt="" border="0" src="" width="1" height="1">

Replies 2 (2)
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: | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
Shopify Partner
24923 2498 9041


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 regarding any help
Shopify Partner | Skype :
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing