Skip to main content
Participant
April 22, 2019
Answered

PayPal Buttons - stretched

  • April 22, 2019
  • 2 replies
  • 2253 views

Hi, I am trying to control the display of a PayPal button.  It is displaying stretched.  Is there a way to control the image size within PayPal code?

Thanks.

Lenny Vineham

This topic has been closed for replies.
Correct answer HARSHIKA_VERMA

Hi Viney352,

Sorry to hear that your PayPal button is displaying stretched and you are facing difficulty in controlling the size of the PayPal button. As suggested by Ben, sometimes the default setting for the CSS of your button in your website's theme settings is usually the cause of the PayPal button to show abnormally big.

In addition to that, we can customize the button's HTML code individually to make it appear normal. Editing the HTML to resize PayPal button, you need to add the "style" attribute to correct the size of the PayPal button like below:-

For Example:

<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_SM.gif"  name="submit"

alt="PayPal - The safer, easier way to pay online!"

style="border: 0px none ; padding: 0px; width: 96px; height: 21px;"/>

You can adjust the width and height dimensions as needed. Please try this and let us know if that helps.

Thanks,

Harshika

2 replies

HARSHIKA_VERMA
Community Manager
HARSHIKA_VERMACommunity ManagerCorrect answer
Community Manager
April 22, 2019

Hi Viney352,

Sorry to hear that your PayPal button is displaying stretched and you are facing difficulty in controlling the size of the PayPal button. As suggested by Ben, sometimes the default setting for the CSS of your button in your website's theme settings is usually the cause of the PayPal button to show abnormally big.

In addition to that, we can customize the button's HTML code individually to make it appear normal. Editing the HTML to resize PayPal button, you need to add the "style" attribute to correct the size of the PayPal button like below:-

For Example:

<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_SM.gif"  name="submit"

alt="PayPal - The safer, easier way to pay online!"

style="border: 0px none ; padding: 0px; width: 96px; height: 21px;"/>

You can adjust the width and height dimensions as needed. Please try this and let us know if that helps.

Thanks,

Harshika

viney352Author
Participant
April 22, 2019

Thank you Harshika and Ben....I will try this:)

HARSHIKA_VERMA
Community Manager
Community Manager
April 22, 2019

You are welcome. Give us a shout if you need anything else.

Thanks,

Harshika

Community Expert
April 22, 2019

Can we see the example page in question where the button is stretched?  The buttons should not be stretched by default, so my thought is that you have CSS that is altering the size of the button already.