<td> sizing with dropdown

liunx

Guest
Is it possible to size the cell to fit the exact size of the dropdown? Right now it leaves a lot of room below the drop down. <br />
<br />
<table border="1"><br />
<tr> <br />
<td> <br />
<div>asdf</div><br />
</td><br />
<td> <br />
<form name="form1"><br />
<select name="catalog" onChange="MM_jumpMenu('parent',this,1)"><br />
<option selected>select</option><br />
<option value="#">asdf</option><br />
<option value="#">asdf</option><br />
<option value="#">asdf</option><br />
</select><br />
</form><br />
</td><br />
</tr><br />
</table><!--content-->That should not be a problem..<br />
<br />
<br />
<table border="1" style="height:100px;"><br />
<tr><br />
<td><br />
<div>asdf</div><br />
</td><br />
<td valign="top"><br />
<form name="form1"><br />
<select name="catalog" onChange="MM_jumpMenu('parent',this,1)"><br />
<option selected>select</option><br />
<option value="#">asdf</option><br />
<option value="#">asdf</option><br />
<option value="#">asdf</option><br />
</select><br />
</form><br />
</td><br />
</tr><br />
</table><!--content-->NOPE... sorry<br />
<br />
it still leaves awful lot of room below the dropdown box, you know, the same way it would on <blockquote> inside the cell.<!--content-->lets see..can you capture a screen shot of the problem and upload it the image?<!--content-->http://www.siriustechnology.com/sites/dropdownissue.html<!--content-->I have no idea what your problem is but i copied your table into my html editor and did it the same way and yours still had the space and mine did not.<br />
Here it is.<br />
<br />
<table border="1" width="10" cellpadding="1" cellspacing="1"><br />
<tr><br />
<td width="65"> <br />
<div>asdf</div> <br />
</td><br />
<td width="1"> <br />
<form name="form1"> <br />
<td width="158"> <br />
<form name="form1"> <br />
<select name="catalog"onChange="MM_jumpMenu('parent',this,1)"> <br />
<option selected>select</option> <br />
<option value="#">asdf</option> <br />
<option value="#">asdf</option> <br />
<option value="#">asdf</option><br />
</td><br />
</tr><br />
</table><!--content-->Originally posted by soccer362001 <br />
I have no idea what your problem is<br />
You have two open forms which you haven't closed.<br />
<br />
Originally posted by Daria <br />
Hey, I thought you were migrating to CSS layout instead of tables.<br />
<br />
What happens is that the closing tag </form> causes a linefeed. The OLD.OLD.OLD.OLD.OLD.OLD way to get around this was to enclose the form around tr instead of td (which is WRONG).<br />
<br />
You may want to do the following:<br />
form {display: inline}<br />
<br />
Better still, you'd want to do:<br />
<div style="float: left; padding: 1px; border: 2px gray inset;">asdf</div><br />
<div style="padding: 1px; border: 2px gray inset;><form name="form1"><br />
<select name="catalog" onChange="MM_jumpMenu('parent',this,1)"> <br />
<option selected>select</option> <br />
<option value="#">asdf</option> <br />
<option value="#">asdf</option> <br />
<option value="#">asdf</option><br />
</select></form><br />
</div><!--content-->thanks for replies, guys.<br />
<br />
nkaisare, the thing is - I need to insert the form in one of the existing table formatted site. <br />
<br />
ahrrr...<!--content-->thats ok,,daria.the problem I think is visualising your problem....or at least I could not...<!--content-->Originally posted by nkaisare <br />
You have two open forms which you haven't closed.<br />
<br />
<br />
<br />
Closing the form would not change anything. All you have to is put </form> at the end of the html doc.<!--content-->
 
Back
Top