ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Simple Commerce - How do I put all 3 buttons on the same line

April 20, 2008 2:46am

Subscribe [3]
  • #1 / Apr 20, 2008 2:46am

    Account Inactive

    21 posts

    Hi there,

    When using Simple Commerce how do I put all 3 buttons on the same line? Currently they appear each on their own line which takes up a lot of space and looks really bad.

    Thank you,
    Robert

  • #2 / Apr 20, 2008 3:30am

    Greg Aker

    6022 posts

    Robert:

    Are you talking about the code pulled from this doc entry?

    if so, just take out the extra paragraph tags, so you have a “” at the beginning, and a “” at the end…

    I hope that’s what you’re looking for.

    -greg

    Hi there,

    When using Simple Commerce how do I put all 3 buttons on the same line? Currently they appear each on their own line which takes up a lot of space and looks really bad.

    Thank you,
    Robert

  • #3 / Apr 20, 2008 3:38am

    Account Inactive

    21 posts

    Hi Greg,

    Thanks for your effort, but I was talking about the buttons and not the links.

    Cheers,
    Robert

  • #4 / Apr 20, 2008 3:43am

    Greg Aker

    6022 posts

    can you point to or paste rendered code that is in question here?

  • #5 / Apr 20, 2008 3:57am

    Ingmar

    29245 posts

    Robert, if you look at the generated code, every button is made up of a new <form> element with is own unique id, containing a few hidden fields and the actual button, class=“paypal_button”. With CSS, it should be possible to get them to display in one line, instead of below one another.

    Do you want me to move this thread to “HTML, CSS, and Design Help”?

  • #6 / Apr 20, 2008 4:09am

    Greg Aker

    6022 posts

    Robert:

    Something like this should do it for you:

    <style type="text/css">
    form {display:inline}
    .hiddenFields {display:none;}
    </style>

    I hope that helps,

    -greg


    EDIT:  Ingmar, I was playing with this while you posted….Is what I did with the the hidden fields display:none, going to cause any problems?

  • #7 / Apr 20, 2008 5:00am

    Ingmar

    29245 posts

    Greg, I don’t see how it could. It’s only impact (if there is one, actually: they should be hidden anyway) would be on the visual output. That should not affect the form data in any way.

  • #8 / May 12, 2008 8:49pm

    patrick-vibes

    63 posts

    I would just stick them in an unordered list and use your CSS to display inline for “ul"and “li” in the div in question

    i.e.

    <ul>
    <li><a href="http://button">source for this button</a></li>
    <li><a href="http://button">source for this button</a></li>
    <li><a href="http://button">source for this button</a></li>
    </ul>

    With CSS you should be fine controlling form elements inside the <list> tags.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases