How to align my paypal html button to center?

December 13, 2010 at 00:05:36
Specs: Windows 7

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>


See More: How to align my paypal html button to center?

Report •

#1
December 18, 2010 at 01:31:26
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


Report •

#2
December 19, 2010 at 00:04:01
WOW!! THANK YOU SO MUCH. Was trying to figure it out for days!

Report •

#3
August 5, 2011 at 11:12:05
The <center> tag is deprecated. It's no longer valid HTML. A common alternative is <div style="text-align:center">.

Report •
Related Solutions


Ask Question