• Resolved mbenatar

    (@mbenatar)


    Hello,
    My paypal button centers in the edit mode in wordpress using this code.
    Button when I call the website up it is still on the left. What am I doing wrong?

    http://www.cfbpraptorrescue.org

    <table align=”center”>
    <tbody>
    <tr>
    <td

    /td>
    </tr>
    </tbody>
    </table>

Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You’re using the “align” attribute that was made obsolete about 4 years ago. Use CSS to center it instead. I would recommend you do this in a stylesheet, but for now just replace this:

    align="center"

    With this:

    style="text-align: center;"

    Thread Starter mbenatar

    (@mbenatar)

    Where am I inserting this code?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Remember you said you used this code:

    <table align="center">
    <tbody>
    <tr>
    <td
    
    /td>
    </tr>
    </tbody>
    </table>

    Thread Starter mbenatar

    (@mbenatar)

    Yes I remember.

    The code
    style=”text-align: center;”
    does not work in the page edit “text” area in wordpress. Hence where else would I insert this code?

    I am not a coder and have never used a CSS style sheet.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Seems like you’re using this code now:

    <p><input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" type="image"><br>
    <img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" alt="" width="1" border="0"></p>

    Try this instead:

    <p style="text-align: center;"><input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" type="image"><br>
    <img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" alt="" width="1" border="0"></p>

    Thread Starter mbenatar

    (@mbenatar)

    Okay. I understand now. Thank you. I appreciate your help. That solved the issue!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Paypal Button won't center’ is closed to new replies.