Support » Fixing WordPress » Center PayPal "Buy Now" BUtton

  • I put multiple PayPal “Buy Now” buttons on the website. Can’t find a way to center the button.

    The theme is TwentyTen and I am using a blank template for this page (it is a page to sell a product).

    The code I got from PayPal is:
    <form action=”” method=”post”><input type=”image” name=”submit” src=”” alt=”PayPal – The safer, easier way to pay online!” />
    <img src=”” alt=”” width=”1″ height=”1″ border=”0″ /></form>

    Any help to center the buttons will be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator justingreerbbi


    Forum Moderator

    You could just do:

    form { text-align:center; }

    In css and make it centered in the form

    Of course you should add a class to the form and input so that you can link to it directly with css and not mess with anything else on the page.

    Thanks. Also found another way to do it – select the button row in the HTML editor and put the style as aligncenter. That put button right in the middle of the page.

    Moderator justingreerbbi


    Forum Moderator

    Yea there is 100 ways to skin a cat.

    I would always use the method that allows for ease of future editing. Always keep that in mind

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Center PayPal "Buy Now" BUtton’ is closed to new replies.