form input text in table; how to fill table cell space

form input text in table; how to fill table cell space

am 06.12.2007 15:30:41 von hfs2

I'm trying to create a table of form input text cells, like this:



















First Column Second Column




Is there a way the text input window can be defined to fill the cell
area no matter
what size the table is? I could define input's size attribute, I
tihnk, if the table
were of a set size, but the table size can vary.

Thanks.

Re: form input text in table; how to fill table cell space

am 06.12.2007 16:14:04 von Adrienne Boswell

Gazing into my crystal ball I observed sdf writing in
news:cd0cdabc-86af-4efb-a98f-3bc2e8fd42af@e1g2000hsh.googleg roups.com:

> I'm trying to create a table of form input text cells, like this:
>
>


>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
First ColumnSecond Column

>

>


>
> Is there a way the text input window can be defined to fill the cell
> area no matter
> what size the table is? I could define input's size attribute, I
> tihnk, if the table
> were of a set size, but the table size can vary.
>
> Thanks.
>

Better:

Form or section title
id="field1">

id="field2">





Replace field with appropriate field names. R1C1 is not really going to
help you when doing server side form processing - are you going to
remember what R1C1 is when you are get the information back from the
client?

The user also needs some kind of labeling so they know what information
should be put into the field.

The elements can be styled with CSS to be whatever width you desire.
Have a look at http://www.intraproducts.com/usenet/requiredform.asp .
This form is in ASP but can easily be converted to other languages, and
the markup, CSS, and server side processing are included.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Re: form input text in table; how to fill table cell space

am 06.12.2007 16:16:09 von lws4art

sdf wrote:
> I'm trying to create a table of form input text cells, like this:
>
>


>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
First ColumnSecond Column

>

>


>
> Is there a way the text input window can be defined to fill the cell
> area no matter
> what size the table is? I could define input's size attribute, I
> tihnk, if the table
> were of a set size, but the table size can vary.


Firstly you know the table will only be as wide as it needs to be for
the content, so I will set it here for the demonstration

table { width: 90% }

Now I can make the inputs 100% but they will overtake any cell padding
so I will use 99%

td input { width: 99% }



--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: form input text in table; how to fill table cell space

am 06.12.2007 16:29:05 von hfs2

Thanks to both of you, Little and Boswell. - sdf