Here is what is on the Pay Pal Developer site: https://developer.paypal.com/sdk/js/reference/#style
Size
By default, the button adapts to the size of its container element.
By default, the button adapts to the size of its container element.
- To customize the button height, set the style.height option to a value from 25 to 55.
- The width of your button container element must be large enough to fit the payment buttons in your layout. This is necessary for a horizontal button layout.
Code:
paypal.Buttons( {
style:
{
layout: 'vertical',
color: 'blue',
shape: 'rect',
size: 48,
label: 'paypal',
tagline: false
},
Code:
paypal.Buttons( {
style:
{
layout: 'vertical',
color: 'blue',
shape: 'rect',
height: 48,
label: 'paypal',
tagline: false
},
Leave a comment: