aej1973
asked on
Rows and columns in text box??
How do i make columns and rows to appear in a text box?? For eg in a simple text box as shown below I want 3 rows and 3 columns to be seen. How do I do this? Thank you.
A
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor. Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>
<body>
<form method="POST">
<p align="center"><input type="text" name="T1" size="20"></p>
</form>
<p align="center"> </p>
<p align="center"> </p>
</body>
</html>
A
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>
<body>
<form method="POST">
<p align="center"><input type="text" name="T1" size="20"></p>
</form>
<p align="center"> </p>
<p align="center"> </p>
</body>
</html>
ASKER
Thank you for the answer. I am looking for the table inside the text area box. Now I am getting the rows and columns only in the form.
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor. Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<form method="POST">
<p align="center"><input type="text" name="T1" size="20"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td align="center" style="border-style: solid; border-width: 1">r1c1</td>
<td align="center" style="border-style: solid; border-width: 1">r1c2</td>
<td align="center" style="border-style: solid; border-width: 1">r1c3</td>
</tr>
<tr>
<td align="center" style="border-style: solid; border-width: 1">r2c1</td>
<td align="center" style="border-style: solid; border-width: 1">r2c2</td>
<td align="center" style="border-style: solid; border-width: 1">r2c3</td>
</tr>
<tr>
<td align="center" style="border-style: solid; border-width: 1">r3c1</td>
<td align="center" style="border-style: solid; border-width: 1">r3c2</td>
<td align="center" style="border-style: solid; border-width: 1">r3c3</td>
</tr>
</table></p>
</form>
</body>
</html>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<form method="POST">
<p align="center"><input type="text" name="T1" size="20"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td align="center" style="border-style: solid; border-width: 1">r1c1</td>
<td align="center" style="border-style: solid; border-width: 1">r1c2</td>
<td align="center" style="border-style: solid; border-width: 1">r1c3</td>
</tr>
<tr>
<td align="center" style="border-style: solid; border-width: 1">r2c1</td>
<td align="center" style="border-style: solid; border-width: 1">r2c2</td>
<td align="center" style="border-style: solid; border-width: 1">r2c3</td>
</tr>
<tr>
<td align="center" style="border-style: solid; border-width: 1">r3c1</td>
<td align="center" style="border-style: solid; border-width: 1">r3c2</td>
<td align="center" style="border-style: solid; border-width: 1">r3c3</td>
</tr>
</table></p>
</form>
</body>
</html>
An input type=text has only one row.
If you need a multiple row/multiple columns input, use a <textarea>.
If you need a multiple row/multiple columns input, use a <textarea>.
You can't display anything but text in an input or textarea. No tables, images, etc. ONLY TEXT.
-Sam
-Sam
ASKER
Thanks, Sam.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<tr>
<td>r1c1</td>
<td>r1c2</td>
<td>r1c3</td>
</tr>
<tr>
<td>r2c1</td>
<td>r2c2</td>
<td>r2c3</td>
</tr>
<tr>
<td>r3c1</td>
<td>r3c2</td>
<td>r3c3</td>
</tr>
</table>