WordPress.org

Ready to get started?Download WordPress

Forums

PayPal buttons inline? (5 posts)

  1. zacchaeusn7
    Member
    Posted 4 years ago #

    Greetings all. I'm trying to inline (same line) two PayPal buttons on a webpage and I can't figure it out. Can anyone help?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of specific help.

  3. zacchaeusn7
    Member
    Posted 4 years ago #

    Esmi~
    Right, sorry about that. The link to the page I'm working on is: http://hookedadventures.com/tour-packages/payment-options/. As you can see, the PayPal buttons by default are left-aligned and on top of each other, but I would like to inline them. Any suggestions?

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    Try adding a class to each of those forms:

    <form class="paypal-form" method="post" action="https://www.paypal.com/cgi-bin/webscr">

    and to the text immediately after them:

    <p class="paypal-form-clear"><strong>Credit Card</strong></p>

    Then try adding:

    form.paypal-form {
    float:left;
    margin-right:10px;
    }
    .paypal-form-clear {clear:left;}

    to style.css.

  5. zacchaeusn7
    Member
    Posted 4 years ago #

    Esmi~

    Unfortunately, I stared at the code for about 2 hours and couldn't figure it out. How should I enter it if the code is?

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input name="cmd" type="hidden" value="_s-xclick" /> <input name="hosted_button_id" type="hidden" value="J9WM6CLFPC7PA" />
    <table>
    <tbody>
    <tr>
    <td><input name="on0" type="hidden" value="Packages" />Full-Day Packages</td>
    </tr>
    <tr>
    <td><select name="os0"> <option value="1 Person Full Day">1 Person Full Day $180.00</option> <option value="2 Person Full Day">2 Person Full Day $360.00</option> <option value="3 Person Full Day">3 Person Full Day $500.00</option> <option value="4 Person Full Day">4 Person Full Day $700.00</option> <option value="5 Person Full Day">5 Person Full Day $810.00</option> </select></td>
    </tr>
    </tbody>
    </table>
    <input name="currency_code" type="hidden" value="USD" /> <input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" type="image" /> <img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="" width="1" height="1" />

Topic Closed

This topic has been closed to new replies.

About this Topic