"Michael" <mi**************@intergraph.comwrote in message
news:ON**************@TK2MSFTNGP02.phx.gbl...
>
' --------------------------------------------------------------------------
------------
The sample here:
<td width="250">
<input type=text size=115 value=Rs("ItemName")>
</td>
<td width="100">
<input type=text size=50 value=Rs("ItemType")>
</td>
Every time i have different amount of <TD>s for display and every time i
make first width of TD and after accordingly size of input. I would like
to
calculate dinamicaly size of <inputbased on width of parent <TD>
Thanks for respond
Don't use size attribute (in fact don't use width attribute either)
<table style="table-layout:fixed">
<tr>
<td style="width:250px">
<input type=text style="width:100%" value=Rs("ItemName")>
</td>
<td style-"width:100px">
<input type=text style="width:100%" value=Rs("ItemType")>
</td>
</tr>
</table>
table-layout:fixed indicates that your TD widths should be honored. The
input widths of 100% indicate that it should take up all the available space
within the TD.
>
' --------------------------------------------------------------------------
------------
>
"Anthony Jones" <An*@yadayadayada.comwrote in message
news:eF**************@TK2MSFTNGP02.phx.gbl...
"Michael" <mi**************@intergraph.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi. I need dinamically calculate input text field based on parent
static
TD
before showing content of input. Please, advice.
Michael
In what way is the TD 'static'?
What units do you want the length value to be in?
It usually best to describe your intentions along with your question.
That
way you stand a better chance of someone giving an better approach
overall
to your problem. So why to do you want to calculate the length and
what
exactly do you mean by length anyway?