Styling a Buy Now button generated via the edit/make button option

RobMcP
Contributor
Contributor

Does anyone have a sample of code that will style a button created using the All Tools, Button generate option from account log in?

Selling ONE item, don't need SDK API or any other stuff, just require a nicer button than the default available.

 

CSS - gained from the developer PayPal pages should be a Gold color, rectangle etc  

paypal.Buttons({
style: { layout: 'vertical', color: 'gold', shape:'rect', label: 'buynow' } }).render('#paypal-button-container');

 

the HTML generated by the create button option is (test code) is in a Form tag.

 

<f o r m action="paypal.com/cgi-bin/webscr" method="post" target="_top">
<i n p u t type="hidden" name="cmd" value="_s-xclick">
<i n p u t type="hidden" name="hosted_button_id" value="etc">

< i n p u t type  image buynow gif etc

< i m g a l t pixel gif etc
</f o r m>

 

The developer area shows how to set various styles and colors for a button, but does not say if you can use it on the HTML above that you create when generating the HTML in the All Tools Button section.

 

Probably a basic question but I can't get the css to amend the look, poss due to it being in a form tag, but this is a first time for me. So I don't know if this is possible or not.

Help appreciated. Thanks.

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.