Center the smart payement buttoms payement code.

mjaMahé
Contributor
Contributor

Good morning.

 

  I have the problem to have my smart payment buttons code <script src="https://www.paypal.com/sdk/js?client-id=sb"></script>
<script>paypal.Buttons().render('body');</script> in the middle of my website page. This one is always to left and is, for me, unusable in this position. I've tested the majority of codes for center a code, without success! Have you a solution?

 

Now, I want to know if it's also possible to include a .css page with a centralization function of codes?

 

 I hope to your answer to continue my work on my website.

 

 Cordially.

 

 mja Mahé

 

Re :

 

I've just resolved my problem with a .css code : 

global {margin-left: auto;
margin-right: auto;
width: ...; }

 

You must indicate width for center the script code.

Source : https://www.alsacreations.com/article/lire/539-Centrer

 

Heartily.

 

mja Mahé

 

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.