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 6 of 6

Thread: form question

  1. #1
    New Coder
    Join Date
    Jul 2003
    Posts
    90
    Thanks
    0
    Thanked 0 Times in 0 Posts

    form question

    How can we align the forms? Like making them in the same position in vertical?

    The code I have is:

    Code:
    <html>
    <body>
    
    
    <form action="" method=""></form>
    <p>Nome  </p>
    <input type=text />    <br>
    Password
    <input type=password />     <br>
    Email
    <input type=mail /> <br>
    Equipa
    <input type=equipa /> <br>
    <br>
    Submit Button
    <input type=submit value="Submit" />    <br>
    Reset Button
    <input type=reset value="Reset" />
    
    
    </body>
    </html>

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Depending on your layout, try:

    <div style="margin:auto">
    form
    </div>

    or

    <div style="text-align:center">
    form
    </div>
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #3
    New Coder
    Join Date
    Jul 2003
    Posts
    90
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well i want to give spaces after the words for the boxs became ate the same position..tanks

  • #4
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,695
    Thanks
    0
    Thanked 232 Times in 227 Posts
    Hi there devil_online,

    The normal method is to put your
    writing on the right hand side.....
    Code:
    <html>
    <head>
    
    <style type="text/css">
    <!--
    input.one{width:130px;}
    input.two{width:62px;}
    //-->
    </style>
    
    </head>
    <body>
    
    <div>
    <form action="" method="">
    <input class="one" type=text /> Nome <br />
    <input class="one"type=password /> Password <br />
    <input class="one"type=mail /> Email <br />
    <input class="one"type=equipa /> Equipa <br /><br />
    <input class="two"type=submit value="Submit" /> <input class="two"type=reset value="Reset" />
    </form>
    </div>
    
    </body>
    </html>
    cthead
    Last edited by coothead; 02-18-2004 at 04:54 PM.

  • #5
    New Coder
    Join Date
    Jul 2003
    Posts
    90
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok..thanks..that's perfect

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Uhh...You got 2 bad div's there and there's no such type called mail or equipa. You can name these if you wish.
    We put the text to the left in the new world.
    Last edited by zoobie; 02-18-2004 at 03:43 PM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">


  •  

    Posting Permissions

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