Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form Positioning

    This question is kind of simple but for some reason I can't figure it out. I'm trying to put mulptiple forms on the same line. The values are hidden and the form acts simply as a link via .php. So it should be possile space wise. However for some reason I just can't the form buttons (fields) to be on the same line. Any help would be greatly appreciated.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Multiple forms on one line. An example:

    <html>
    <head>
    <title>Untitled</title>
    <style type="text/css">
    <!--
    form {
    width:33%;
    display:inline;
    }
    -->
    </style>
    </head>
    <body>
    <form name="" action=""><p class="">Text<br />
    <input type="submit" value="Send!" class="" />
    <input type="hidden" name="" value="" />
    <input type="hidden" name="" value="" />
    <input type="hidden" name="" value="" /></p></form>
    <form name="" action=""><p class="">Text<br />
    <input type="submit" value="Submit!" class="" />
    <input type="hidden" name="" value="" />
    <input type="hidden" name="" value="" />
    <input type="hidden" name="" value="" /></p></form>
    <form name="" action=""><p class="">Text<br />
    <input type="submit" value="Click here!" class="" />
    <input type="hidden" name="" value="" />
    <input type="hidden" name="" value="" />
    <input type="hidden" name="" value="" /></p></form>
    </body>
    </html>

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    183
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Use tables.

    <table>
    <tr>
    <td>form 1</td>
    <td>form 2</td>
    <td>form 3</td>
    </tr>
    </table>

    Offtone.com - In the works...

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    577
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yup, you'd need tables (or divs) as both the <form> and </form> tags forced a linebreak to occur before and after
    Ökii - formerly pootergeist
    teckis - take your time and it'll save you time.


  •  

    Posting Permissions

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