PC Review


Reply
Thread Tools Rate Thread

Is it better to use cell spacing for table layout

 
 
Ryan
Guest
Posts: n/a
 
      7th Dec 2004
I am not a web programmer and trying to figure out the best way for laying
out a form for data entry. I would like, for example, to have a right
justified label followed by 5 pixals and a left justified textbox. Should I
use three columns for this, with the center column five pixals wide or two
colums with the table cell spacing set to five pixals.

Also, when is it appropriate to use the lable control as opposed to just
keying text into the cell? Or does it matter?


 
Reply With Quote
 
 
 
 
Chad Devine
Guest
Posts: n/a
 
      7th Dec 2004
I would do the 3 column approach, but when considering exact pixels,
you must remember that you have table border and cellpadding settings
that will calculate into this as well.

If you do cell spacing, I believe it will add 5 pixels on all sides of
the cell, not just between the horizontal borders of them.

 
Reply With Quote
 
bruce barker
Guest
Posts: n/a
 
      7th Dec 2004
i would use two columns, the more complex the table, the longer to render.
you should always use a label, and fill the for attribute. its used by the
browser for accessibility (opera is real good at this)

-- bruce (sqlwork.com)



"Ryan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
| I am not a web programmer and trying to figure out the best way for laying
| out a form for data entry. I would like, for example, to have a right
| justified label followed by 5 pixals and a left justified textbox. Should
I
| use three columns for this, with the center column five pixals wide or two
| colums with the table cell spacing set to five pixals.
|
| Also, when is it appropriate to use the lable control as opposed to just
| keying text into the cell? Or does it matter?
|
|


 
Reply With Quote
 
Chad Devine
Guest
Posts: n/a
 
      7th Dec 2004
I think the load time of a 3 column table to make a form will be
negligible in this case. I agree if you're pulling many many rows of
information into a datagrid, having as few columns as possible is
important. This is a form to update a sql server, I don't think having
3 columns is going to hurt much. The only reason I say this, is because
I don't understand your suggestion:

"you should always use a label, and fill the for attribute."
What does that mean?

 
Reply With Quote
 
Chad Devine
Guest
Posts: n/a
 
      7th Dec 2004
I think the load time of a 3 column table to make a form will be
negligible in this case. I agree if you're pulling many many rows of
information into a datagrid, having as few columns as possible is
important. This is a form to update a sql server, I don't think having
3 columns is going to hurt much. The only reason I say this, is because
I don't understand your suggestion:

"you should always use a label, and fill the for attribute."
What does that mean?

 
Reply With Quote
 
Ryan
Guest
Posts: n/a
 
      7th Dec 2004
Actually, I used that only as an example. Some of the forms will be quite
complex and simplifying the table's seems preferable so long as there are no
artifacts or downside to it.

"Chad Devine" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I think the load time of a 3 column table to make a form will be
> negligible in this case. I agree if you're pulling many many rows of
> information into a datagrid, having as few columns as possible is
> important. This is a form to update a sql server, I don't think having
> 3 columns is going to hurt much. The only reason I say this, is because
> I don't understand your suggestion:
>
> "you should always use a label, and fill the for attribute."
> What does that mean?
>



 
Reply With Quote
 
Chad Devine
Guest
Posts: n/a
 
      7th Dec 2004
Whichever the case use your best judgement, but consider the people you
are targeting this site at. If the average user is using a decent
computer, 100 rows with 6 columns will render instantaneously.
I know, because I am doinging it right now.

 
Reply With Quote
 
mark4asp
Guest
Posts: n/a
 
      8th Dec 2004
On Tue, 7 Dec 2004 09:49:05 -0800, "Ryan" <(E-Mail Removed)>
wrote:

>I am not a web programmer and trying to figure out the best way for laying
>out a form for data entry. I would like, for example, to have a right
>justified label followed by 5 pixals and a left justified textbox. Should I
>use three columns for this, with the center column five pixals wide or two
>colums with the table cell spacing set to five pixals.
>
>Also, when is it appropriate to use the lable control as opposed to just
>keying text into the cell? Or does it matter?


Surely you can just give the second column a attribute
<td style = "padding-left: 5px"> </td>

You can implement this by using a style sheet (HTML class
attribute rather than style attribute). Eg.

http://www.15seconds.com/issue/040105.htm

I can see no advantage of using a 3rd column in the middle and
would not because you'd be using that table column only for
layout purposes.

I must strongly disagree with the guy who said use a 3 column
table.

I, myself, would be tempted to use some from of table-less css
layout myself, google "table-less form css", as the purists do.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Table & Cell borders and spacing Niagara Mouse Microsoft Frontpage 3 1st May 2009 12:45 PM
2:0: improper layout of controls in a table cell RAM Microsoft ASP .NET 2 10th Oct 2006 11:49 AM
Absolute within a layout table cell? =?Utf-8?B?c3RldmVyaW5v?= Microsoft Frontpage 6 2nd Aug 2006 05:08 AM
layout cell turn into a layout table Allison Microsoft Frontpage 2 9th May 2006 02:04 PM
Layout table cell formatting issue =?Utf-8?B?Q2hlZXNlX3doaXo=?= Microsoft Frontpage 4 30th Mar 2005 01:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:19 AM.