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

Thread: Form size?

  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form size?

    Ok so I recently asked a question along the lines of "How do I get forms with hidden fields to stay on the same line." and I got a lot of help so that is no longer a problem. However, another issue has come up dealing with forms. I have to put these buttons that I made in a table with a 36 pixel height. Well... The forms aren't having it. Is it not possible to have simple form buttons which are not nearly as big as 36 pixels tall in a 36 pixel tall table? any suggestions on how to get around this or how to fix it completely? I have the table hieght set to 36 pixels but its just not happening. Any help would be greatly appreciated. Thanks.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is it not possible to have simple...
    Sure it's possible.
    Use style="height:98%" or style="height:30" along with other attributes in
    input type="button" style="height:98%; width..........
    how to fix it completely
    Post your code so we see where the problem is...
    Last edited by PauletteB; 11-03-2002 at 10:38 AM.

  • #3
    New Coder
    Join Date
    Oct 2002
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here is the actual table
    <td width="200" height="30">
    <form method="POST" action="/">
    <input type="hidden" name="id" value="4" />
    <input type="hidden" name="verify" value="<?php echo "$verify"; ?>" />
    <input type="hidden" name="user_id" value="<?php echo "$user_id"; ?>" />
    <input type="hidden" name="school_id" value="<?php echo "$school_id"; ?>" />
    <input type="image" src="images/interface/sba.gif" type="submit" value="Search" ></p></form>

    Here is the style stuff in my head section
    <style type="text/css">
    <!--
    form {
    width:0%;
    display:inline;
    }
    -->
    </style>

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Originally posted by lavi557
    Here is the actual table
    <td width="200" style="height: 30px">
    <form method="POST" action="/">
    <input type="hidden" name="id" value="4" />
    <input type="hidden" name="verify" value="<?php echo "$verify"; ?>" />
    <input type="hidden" name="user_id" value="<?php echo "$user_id"; ?>" />
    <input type="hidden" name="school_id" value="<?php echo "$school_id"; ?>" />
    <input type="image" src="images/interface/sba.gif" type="submit" value="Search" ></p></form>

    Here is the style stuff in my head section
    <style type="text/css">
    <!--
    form {
    width:0%;
    display:inline;
    }
    -->
    </style>
    Try that. Just a little FYI, the height attribute on the <td> tag has been deprecated. You gotta use CSS instead.


  •  

    Posting Permissions

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