View Full Version : Table Question/Help
quinnrd
03-08-2003, 12:59 PM
I am simply placing a form in a table and not getting the results I want. As you can see from the following , the table height is 15. But the table height expands to twice this size when the form element is placed inside. What did I miss, how can I reemove the unwanted space at the bottom of the form. Thanks in advance.......
code:
<html>
<table width="75" height="15" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="75" height="15">
<form method="post" action="search.php">
<select name="searchtype">
<option valve ="title" selected>Title
<option valve ="cast">Cast
<option valve ="director">Director
</select>
</form>
</td>
</tr>
</table>
</html>
redhead
03-08-2003, 01:40 PM
<form method="post" action="search.php" style="margin: 0px; padding: 0px;">
that should fix things... :)
redhead
03-08-2003, 01:41 PM
one other note: <option valve=""> should be <option value...
justame
03-08-2003, 02:53 PM
Originally posted by quinnrd
how can I reemove the unwanted space at the bottom of the form.
qui...
for sommme just a reason® /me seems to think ya can get rid of the ol' space by going...
<form method="post" action="search.php">
<table width="75" height="15" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="75" height="15">
<select name="searchtype">
<option valve ="title" selected>Title
<option valve ="cast">Cast
<option valve ="director">Director
</select>
</td>
</tr>
</table>
</form>
aka just a put® the 'form' tags outside of the ol' table...just a goodluck®
justame
03-08-2003, 02:57 PM
just a gigglin'® with glee...
/me just a found® it...errr them...
one from feyd n' one from daveclark...:O)))
You can remove the margin paddings from the FORM via CSS...either in your global CSS
file, or inline:
FORM {
margin : 0
}
or
<form method="POST" style="margin:0;" etc.
from feyd...
n' from dave clark...
I have noticed that the closing FORM tag does that. I have "fixed" it by not closing the
FORM in the effected TD -- but to close the FORM in the next TD, TR, or whatever.
brothercake
03-08-2003, 03:06 PM
Yeah - if you close it in a place that has no physical presence, it will solve the problem; basically
<table>
<form>
<tbody> .... </tbody>
</form>
</table>
quinnrd
03-08-2003, 07:23 PM
Well thanks for all the help/replys. I tried several on these and they all worked.
Thanks again...
Perhaps someone could tell me how to change the form background from the plain white to some other color....
THanks again...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.