Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tables and sizes

Status
Not open for further replies.

rtnMichael

Programmer
Aug 5, 2002
152
US
hey,
I need to have two tables. The first consists of a list of parameters available and the other is empty until parameters are chosen from the first. I have two seperate questions:
1. how do I get the tables to be a fixed size, instead
of sizing to the longest parameter? (doesn't look
too shabby when there's nothing in the table.)

2. how would I get the parameters to move from one
table to the next and delete from the previous
table?

Thanks
M
 
first question: set within the table or the cells either the width="" height="" attributes or the use of rowspan and colspan in the TD's and TR's

second question: the easiest way I can think of the top of my head is to have textboxs in the table with the attribute style="border:none;" so they do not appear as boxs and on the completion of one simply send the value to the next with a simple javascript function. A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
ok, I have this code in there right now and it doesn't seem to be working. I get a little sliver of size 1 or 2 in width. Can you see where I'm going wrong?

<td valign=top colspan=100 rowspan=10>
<select name=excluded_params size=10 multiple>
<option value=&quot;&quot;><small>insert1</small>
<option value=&quot;&quot;><small>insert2</small>
<option value=&quot;&quot;><small>insert3</small>
</select>
</td>
 
I get a little sliver of size 1 or 2 in width.
what do you mean you get a sliver of 1 or 2.
the code works fine when place in a table here.
not quite sure what your trying to accomplish but if you want but here's what I would do to change the size of the table or select
<table border=1>
<td valign=top style=&quot;width:600px;height:600;&quot;>
<select name=excluded_params size=10 multiple style=&quot;width:200px;height:600;&quot;>
<option value=&quot;&quot;><small>insert1</small>
<option value=&quot;&quot;><small>insert2</small>
<option value=&quot;&quot;><small>insert3</small>
</select>
</td>
</table> A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
Got it, it was the style tag I was missing.

Thanks
M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top