By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,568 Members | 1,196 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,568 IT Pros & Developers. It's quick & easy.

Form, making Text field as wide as your <TD> ?

P: n/a
Mel
is it possible ?

i tried size=100% and 'NADA !'

thanks,
Mel
Jul 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"Mel" <me*@redolive.com> wrote in message
news:bs**********@s0b1a68.ssa.gov...
is it possible ?

i tried size=100% and 'NADA !'

thanks,
Mel


Is this what you want? Watch for word-wrap.

<html>
<head>
<title>width.htm</title>
</head>
<body>
<form>
<table border="0" cellpadding="0" cellspacing="0" width="300">
<tr>
<td align="center">
<input type="text" style="width:300">
</td>
</tr>
</table>
</form>
</body>
</html>
Not that "width=" value equals the "width:" value.

What's 'NADA !'?
Jul 20 '05 #2

P: n/a
Mel
Thanks for your help, but what happens when the table width is 100% instead
of "300" ?
i need my text to resize based on the table size !!!

can you please help ?

oh Nada is Nothing in spanish
"McKirahan" <Ne**@McKirahan.com> wrote in message
news:xnXHb.164276$8y1.490938@attbi_s52...
"Mel" <me*@redolive.com> wrote in message
news:bs**********@s0b1a68.ssa.gov...
is it possible ?

i tried size=100% and 'NADA !'

thanks,
Mel


Is this what you want? Watch for word-wrap.

<html>
<head>
<title>width.htm</title>
</head>
<body>
<form>
<table border="0" cellpadding="0" cellspacing="0" width="300">
<tr>
<td align="center">
<input type="text" style="width:300">
</td>
</tr>
</table>
</form>
</body>
</html>
Not that "width=" value equals the "width:" value.

What's 'NADA !'?

Jul 20 '05 #3

P: n/a
"Mel" <me*@redolive.com> wrote in message
news:bs**********@s0b1a68.ssa.gov...
Thanks for your help, but what happens when the table width is 100% instead of "300" ?
i need my text to resize based on the table size !!!

can you please help ?


Try:

<input type="text" name="what" style="width:100%">

Jul 20 '05 #4

P: n/a
Mel
that's exactly what i tried and what i get a a "text" that's 100px wide and
not 100% of <TD>

Yours, mel
"McKirahan" <Ne**@McKirahan.com> wrote in message
news:iRXHb.164505$8y1.491487@attbi_s52...
"Mel" <me*@redolive.com> wrote in message
news:bs**********@s0b1a68.ssa.gov...
Thanks for your help, but what happens when the table width is 100%

instead
of "300" ?
i need my text to resize based on the table size !!!

can you please help ?


Try:

<input type="text" name="what" style="width:100%">

Jul 20 '05 #5

P: n/a
"Mel" <me*@redolive.com> writes:

Please don't top post!
that's exactly what i tried and what i get a a "text" that's 100px wide and
not 100% of <TD>


IIRC, you tried <input ... size="100%">. That is something different
(and incorrect, the value of the size attribute should be a number,
not a percentage).

And it works for me. Example code:
<table style="width:100%">
<tr><td><input type="text" style="width:100%"></td></tr>
</table>
So, what are you doing differently.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #6

P: n/a
Mel wrote:
that's exactly what i tried and what i get a a "text" that's 100px wide and
not 100% of <TD>
Are you sure? If yes, your user agent is
borken. Re-install, update or replace it.
[Top post]


Please do not do that.
PointedEars
Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.