Results 1 to 8 of 8

Thread: How to centre a PayPal button

  1. #1
    Join Date
    May 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default How to centre a PayPal button

    Here is the code for an image with text along side and the PayPal button. Everything is the way I want it except the paypal button should be centered under the $24.99. I have searched the forum high and low and can't find the answer. Thanks for all of your help!
    Code:
    <div>
    <div style="float:left; width:300;">
    <p style="color:8B008B; font-family:sienna; font-size:20pt; width:700; text-align:center;">
    <img src="http://idisk.mac.com/dougmac3684-Public/jtlcover4site.jpg" align="left" >
    <br>
    <br>
    <br>
    <br>
    <br>
    Journey To Love Audio CD
    <br>
    $24.99
    
    <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="5147941">
    <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!">
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    
    
    </p>
    </div>
    Last edited by Snookerman; 05-02-2009 at 09:07 PM. Reason: added “Resolved” prefix

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Give the input the following CSS rules:
    Code:
    display: block;
    margin: 0 auto;
    Good luck!

  3. #3
    Join Date
    May 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Snookerman:
    Thanks so much for the fast reply. Is there a way to do this inline? It's a convoluded situation, the website is going to be redone and this is a "patch" until the entire web is redone. Just want to be able to list 3 or 4 Audio CD's down the page with the paypal button til that happens. I was going to copy the code 3 times and change the images and prices once I get the formatting correct. Thanks in advance for your time and energy.

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Sure:
    Code:
    <input style="display: block; margin: 0 auto;" 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!">
    Good luck!

  5. The Following User Says Thank You to Snookerman For This Useful Post:

    dougsmith (05-02-2009)

  6. #5
    Join Date
    May 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Snookerman-
    Thank you so much. It's people like you who make the world go round....
    Doug

  7. #6
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome Doug, I'm glad to help you out (or around )

    Good luck with your site!

  8. #7
    Join Date
    Aug 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Thanks ! It worked !!

    Thanks Guys, It worked for me too. I placed it inside my Drupal Code.

  9. #8
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Sure thing nanduhc, glad to help you out!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •