|
-
Dec 29th, 2001, 05:00 PM
#1
Thread Starter
Member
Text field that occupies an entire cell? [resolved]
How can I make a text field (i.e., the <input> tag) with a width such that it fills an entire <td>?
Last edited by filburt1; Dec 30th, 2001 at 08:26 PM.
-
Dec 29th, 2001, 08:00 PM
#2
Fanatic Member
Just a guess, try width="100%".
Alcohol & calculus don't mix.
Never drink & derive.
-
Dec 29th, 2001, 09:02 PM
#3
Thread Starter
Member
-
Dec 30th, 2001, 03:28 PM
#4
Fanatic Member
Like I said, just a guess Try length="100%" (another guess).
Alcohol & calculus don't mix.
Never drink & derive.
-
Dec 30th, 2001, 03:34 PM
#5
Thread Starter
Member
Didn't work either.
-
Dec 30th, 2001, 04:06 PM
#6
width will work in the style attribute, but try using size="100%"
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Dec 30th, 2001, 04:17 PM
#7
Thread Starter
Member
Code:
<input style="width:100%" type="text" onKeyPress="transferKeyEvent()" name="q">
Nope.
Code:
<input size="100%" type="text" onKeyPress="transferKeyEvent()" name="q">
Nope.
-
Dec 30th, 2001, 04:25 PM
#8
strange, the style way works for me...
Code:
<table border="1" width="100%">
<tr><TD>
<input style="width:100%" type="text">
</td><td width="5%"></td></tr>
</table>
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Dec 30th, 2001, 07:02 PM
#9
PowerPoster
filburt....do you test the code before you say it doesn't work??
it works for me too
Code:
<form><table><tr><td style="Width:500px;"><input
style="width:100%;"></td></tr></table></form>
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Dec 30th, 2001, 07:05 PM
#10
Thread Starter
Member
I'm telling you didn't work, I wouldn't lie. I'll try a more simple version in a moment...
-
Dec 30th, 2001, 07:06 PM
#11
PowerPoster
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Dec 30th, 2001, 07:14 PM
#12
Thread Starter
Member
I wasn't specifying the width of the cell which was the problem: adding the bold stuff made it work. 
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td>
<form name="searchForm" action="http://www.google.com/search?q=site:turtletips%2Ecom+">
<br>
<script language="javascript">
<!--
function transferKeyEvent()
{
if (event.keyCode == 13)
{
event.returnValue = false;
submitSearch();
}
}
// -->
</script>
<input style="width:100%" type="text" onKeyPress="transferKeyEvent()" name="q">
</form>
</td>
<td width="75">
<div align="right"><a href="javascript:submitSearch();"><img src="searchbutton.jpg" width="70" height="27" border="0" align="absmiddle"></a></div>
</td>
</tr>
</table>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|