Board index » html » using tables to align text and textarea

using tables to align text and textarea

2003-07-13 06:55:00 AM
been trying to use tables with rowspan to horizontally align text prompts
and a multiline textarea but so far not working
<tr>
<td rowspan="2">prompt for text area </td>
<td><TEXTAREA cols=30 rows= 2 wrap name="prevExperText" value="">
</TEXTAREA></td>
<tr>
can this be done?
-
 

Re:using tables to align text and textarea

been trying to use tables with rowspan to horizontally align text prompts
and a multiline textarea but so far not working
<tr>
<td rowspan="2">prompt for text area </td>
<td><TEXTAREA cols=30 rows= 2 wrap name="prevExperText" value="">
</TEXTAREA></td>
<tr>
can this be done?
Using a table to align or position components is a no no. It won't behave
properly outside of IE.
-

Re:using tables to align text and textarea

Quote
Been trying to use tables with rowspan to horizontally align text prompts
and a multiline textarea but so far not working
<tr>
<td rowspan="2">prompt for text area </td>
<td><TEXTAREA cols=30 rows= 2 wrap name="prevExperText" value="">
</TEXTAREA></td>
<tr>
can this be done?
Quote
Using a table to align or position components is a no no. It won't behave
properly outside of IE.
Sorry, what I meant to say:
Using a table to align or position components of a form is a no no. It
won't behave properly outside of IE.
-

Re:using tables to align text and textarea

thanx for the reply,
wow thats seems to be big news, so just to be perfectly clear
so no tables of any kind in a form??
just use breaks, spaces, tabs etc to do all the formatting?
"Blindsya" <anom@anom.com>wrote in message
Quote
Been trying to use tables with rowspan to horizontally align text prompts
and a multiline textarea but so far not working
<tr>
<td rowspan="2">prompt for text area </td>
<td><TEXTAREA cols=30 rows= 2 wrap name="prevExperText" value="">
</TEXTAREA></td>
<tr>
can this be done?

Quote
Using a table to align or position components is a no no. It won't
behave
Quote
properly outside of IE.

Sorry, what I meant to say:
Using a table to align or position components of a form is a no no. It
won't behave properly outside of IE.


-

Re:using tables to align text and textarea

"Blindsya" <anom@anom.com>wrote in message
Quote
Been trying to use tables with rowspan to horizontally align text prompts
and a multiline textarea but so far not working
<tr>
<td rowspan="2">prompt for text area </td>
<td><TEXTAREA cols=30 rows= 2 wrap name="prevExperText" value="">
</TEXTAREA></td>
<tr>
can this be done?

Quote
Using a table to align or position components is a no no. It won't
behave
Quote
properly outside of IE.

Sorry, what I meant to say:
Using a table to align or position components of a form is a no no. It
won't behave properly outside of IE.


Wow. So like, millions of forms all over the internet fail because the form
elements are positioned with tables?
I agree that positioning form elements with tables is bad, but forms *do*
still render and operate just fine with browsers other than IE.
--
Karl Core
Charles Sweeney says my sig is fine as it is.
-

Re:using tables to align text and textarea

Quote
From: bbxrider1@comcast.net (bbxrider)
been trying to use tables with rowspan to>horizontally align text
prompts and a>multiline textarea but so far not working
The trick is to put your table WITHIN your Form tags:
Wrong: <table><tr><td><form><textarea></form></td></tr></table>
Correct: <form><table><tr><td><textarea></td></tr></table></form>
Web Design-Magic-Painting-Junking-Games
INFO 2000 For You
www.davmagic.com
-

Re:using tables to align text and textarea

Gazing into my crystal ball I observed "bbxrider" <bbxrider1@comcast.net>
writing in news:CskQa.53976$Ph3.4899@sccrnsc04:
Quote
"Blindsya" <anom@anom.com>wrote in message
news:besh4b$qgg$1@news6.svr.pol.co.uk...
Quote
>Been trying to use tables with rowspan to horizontally align text
>prompts
and a multiline textarea but so far not working <tr>
<td rowspan="2">prompt for text area </td>
<td><TEXTAREA cols=30 rows= 2 wrap name="prevExperText" value="">
</TEXTAREA></td>
<tr>
can this be done?

>Using a table to align or position components is a no no. It won't
>behave
properly outside of IE.

Sorry, what I meant to say:
Using a table to align or position components of a form is a no no.
It won't behave properly outside of IE.


thanx for the reply
if you can't use tables at all, is there another way to setup columns
etc without having to code all the spaces etc

You CAN use tables for form layout, although it is ill advised. Here's a
simple form:
<form method="post" action="somepage" id="tableform">
<table summary="A table used to layout a form">
<caption>Fill Out the Form</caption>
<colgroup span="2" valign="top">
<col align="right" width="20%" />
<col align="left" width="80%" />
</colgroup>
<tr>
<td colspan="2">Name and Address Information</td>
</tr><tr>
<td><label for="name">Name: </label></td><td><input type="text"
name="name" id="name" /></td>
</tr><tr>
<td><label for="address">Address </label></td><td><input type="text"
name="address" id="address" /></td>
</tr><tr>
<td colspan="2"><p style="text-align:center"><input type="submit"
value="Submit" />  <input type="reset" value="Cancel" /></p></td>
</tr>
</table>
</form>
Better:
<form method="post" action="somepage" id="regularform">
<fieldset><legend>Name and Address Information</legend>
<label for="name">Name: </label><input type="text" name="name"
id="name" /><br />
<label for="address">Address </label><input type="text" name="address"
id="address" />
</fieldset>
</form>
You can then use CSS to style the elements of the form more easily.
--
Adrienne Boswell
Please respond to the group so others can share
www.arbpen.com
-

Re:using tables to align text and textarea

ok now am getting confused,
is it hit or miss if tables will work ok with forms outside of IE? there
seems to be opinions here
is coding the table within the form tags ok for all browsers?? this seems a
simple solution
"Davmagic com" <DLSD@webtv.net>wrote in message
Quote
From: bbxrider1@comcast.net (bbxrider)
been trying to use tables with rowspan to>horizontally align text
prompts and a>multiline textarea but so far not working

The trick is to put your table WITHIN your Form tags:

Wrong: <table><tr><td><form><textarea></form></td></tr></table>

Correct: <form><table><tr><td><textarea></td></tr></table></form>



Web Design-Magic-Painting-Junking-Games
INFO 2000 For You
www.davmagic.com

-

Re:using tables to align text and textarea

In article <Lk0Qa.44487$sY2.19558@rwcrnsc51.ops.asp.att.net>, bbxrider1
@comcast.net says...
Quote
been trying to use tables with rowspan to horizontally align text prompts
and a multiline textarea but so far not working
<tr>
<td rowspan="2">prompt for text area </td>
<td><TEXTAREA cols=30 rows= 2 wrap name="prevExperText" value="">
</TEXTAREA></td>
<tr>
can this be done?

You don't need the rowspan; the rows on the textarea are nothing to do
with table rows. If you don't like where the prompt goes then use css
to align it vertically.
Some people don't like tables used for form layout, but there's quite a
lot of argument about this so I shouldn't worry about it too much -
although if you find yourself using nested tables then you probably need
to rethink your design.
Here's a small example of a form laid out in a table with some (probably
too much!) css used to style it:
porjes.com/tform.html
I've dropped in your textarea (modified a bit) to show you how it's
done.
-

Re:using tables to align text and textarea

"bbxrider" <bbxrider1@comcast.net>:
Quote
"Davmagic com"
Quote
>bbxrider
>been trying to use tables with rowspan to>horizontally align text
prompts and a>multiline textarea but so far not working

The trick is to put your table WITHIN your Form tags:

Wrong: <table><tr><td><form><textarea></form></td></tr></table>

Correct: <form><table><tr><td><textarea></td></tr></table></form>
ok now am getting confused,
no need
Quote
is it hit or miss if tables will work ok with forms outside of IE? there
seems to be opinions here

hit
Quote
is coding the table within the form tags ok for all browsers?? this seems a
simple solution

<form><table></table></form>works fine
--
John W.
<webcel.nl/>
"Time is what prevents everything from happening at once"
- John Archibald Wheeler -
-