computing
  • 0

How To Align My Paypal Html Button To Center?

  • 0

Not only the code do I want Centered but also the Text and Options!
Here is the HTML CODE:

<form action=”https://www.paypal.com/cgi-bin/webscr” method=”post”>
<input type=”hidden” name=”cmd” value=”_s-xclick”>
<input type=”hidden” name=”hosted_button_id” value=”GGVCUHF8DDFNY”>
<table>
<tr><td><input type=”hidden” name=”on0″ value=”Payment Options”>Payment Options</td></tr><tr><td><select name=”os0″>
<option value=”Option 1 Monthly”>Option 1 Monthly $77.00</option>
<option value=”Option 2 Yearly”>Option 2 Yearly $777.00</option>
</select> </td></tr>
</table>
<input type=”hidden” name=”currency_code” value=”USD”>
<input type=”image” src=”https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif” border=”0″ name=”submit” alt=”PayPal – The safer, easier way to pay online!”>

</form>

Share

1 Answer

  1. Howdy,

    You will need to put <center> tags around the form:

    So, like this:

    <center>
    <form action=”https://www.paypal.com/cgi-bin/webscr” method=”post”>
    <input type=”hidden” name=”cmd” value=”_s-xclick”>
    <input type=”hidden” name=”hosted_button_id” value=”GGVCUHF8DDFNY”>
    <table>
    <tr><td><input type=”hidden” name=”on0″ value=”Payment Options”>Payment Options</td></tr><tr><td><select name=”os0″>
    <option value=”Option 1 Monthly”>Option 1 Monthly $77.00</option>
    <option value=”Option 2 Yearly”>Option 2 Yearly $777.00</option>
    </select> </td></tr>
    </table>
    <input type=”hidden” name=”currency_code” value=”USD”>
    <input type=”image” src=”https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif” border=”0″ name=”submit” alt=”PayPal – The safer, easier way to pay online!”>

    </form>
    </center>

    That should work fine.

    Yours,
    Matt

    • 1