...

View Full Version : Form size?



lavi557
11-03-2002, 08:51 AM
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.

PauletteB
11-03-2002, 10:29 AM
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...

lavi557
11-03-2002, 09:13 PM
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>

oracleguy
11-04-2002, 02:50 AM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum