Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Using a table to structure a form?

Reply
Thread Tools

Using a table to structure a form?

 
 
John Salerno
Guest
Posts: n/a
 
      06-24-2008
I know this is common, but for all you hardcore people, is this considered
bad practice? Should CSS be used instead, or is it just too much of a
headache?


 
Reply With Quote
 
 
 
 
Travis Newbury
Guest
Posts: n/a
 
      06-24-2008
On Jun 24, 9:07 am, "John Salerno" <johnj...@NOSPAMgmail.com> wrote:
> I know this is common, but for all you hardcore people, is this considered
> bad practice? Should CSS be used instead, or is it just too much of a
> headache?


Tables are used for form layout all the time and they work fine.
 
Reply With Quote
 
 
 
 
Bergamot
Guest
Posts: n/a
 
      06-24-2008

John Salerno wrote:
> is this considered
> bad practice? Should CSS be used instead, or is it just too much of a
> headache?


I often use tables to layout forms - typically the label in one cell and
the control in the adjacent cell. I see it as tabular data, since there
is a relationship between the data in rows and columns.

--
Berg
 
Reply With Quote
 
John Salerno
Guest
Posts: n/a
 
      06-24-2008
"John Salerno" <> wrote in message
news:4860f1b4$0$22464$...
>I know this is common, but for all you hardcore people, is this considered
>bad practice? Should CSS be used instead, or is it just too much of a
>headache?


Thanks guys. I guess the real issue is whether forms are really tabular
data, otherwise it's an "abuse" of the <table> structure. I'm glad some of
you see it as a valid table! It just seems so much *easier* than using CSS.



 
Reply With Quote
 
Chris F.A. Johnson
Guest
Posts: n/a
 
      06-24-2008
On 2008-06-24, John Salerno wrote:
> "John Salerno" <> wrote in message
> news:4860f1b4$0$22464$...
>>I know this is common, but for all you hardcore people, is this considered
>>bad practice? Should CSS be used instead, or is it just too much of a
>>headache?

>
> Thanks guys. I guess the real issue is whether forms are really tabular
> data, otherwise it's an "abuse" of the <table> structure. I'm glad some of
> you see it as a valid table! It just seems so much *easier* than using CSS.
>


On the other hand, using float:left on the label means that it will
be positioned over the input field when the window is too narrow
for both to be on the same line rather than causing horizontal
scrolling.

--
Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
 
Reply With Quote
 
Shaun
Guest
Posts: n/a
 
      06-25-2008
I've used tables for forms before too, but feel bad every time I do

You can use a graphical tool to build your form all lined up the way
you'd like that generates CSS. Try:
http://psd2cssonline.com

There's a demo about making a form on the site here:
http://psd2cssonline.com/node/37

--
Shaun
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      06-25-2008
In article
<d614d201-2f3b-49cc-aa25->,
Shaun <> wrote:

> I've used tables for forms before too, but feel bad every time I do


Why?

--
dorayme
 
Reply With Quote
 
Travis Newbury
Guest
Posts: n/a
 
      06-25-2008
On Jun 24, 10:56*pm, Shaun <smci1...@gmail.com> wrote:
> I've used tables for forms before too, but feel bad every time I do


That's because your weak not because using tables with forms is bad.

> You can use a graphical tool to build your form all lined up the way
> you'd like that generates CSS. *Try:http://psd2cssonline.com


What a crock of ****... Learn HTML and CSS, then you can do what ever
you like and you don't have to depend on a crutch.

Hey isn't "belfastrab" Astro's name before he was adopted by the
Jetsons?
 
Reply With Quote
 
Adrienne Boswell
Guest
Posts: n/a
 
      06-28-2008
Gazing into my crystal ball I observed "John Salerno"
<> writing in
news:4860f1b4$0$22464$:

> I know this is common, but for all you hardcore people, is this
> considered bad practice? Should CSS be used instead, or is it just too
> much of a headache?
>
>


I use CSS, and lables. There is an example here (in ASP but can easily be
converted to another language):
http://intraproducts.com/usenet/requiredform.asp

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

 
Reply With Quote
 
Shaun
Guest
Posts: n/a
 
      07-03-2008
"Tables should not be used purely as a means to layout document
content..."
http://www.w3.org/TR/html401/struct/tables.html


On Jun 25, 3:10*am, Travis Newbury <TravisNewb...@hotmail.com> wrote:
> On Jun 24, 10:56*pm, Shaun <smci1...@gmail.com> wrote:
>
> > I've used tables for forms before too, but feel bad every time I do

>
> That's because your weak not because using tables with forms is bad.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Memory allocation in Structure to Structure pra_ramli@rediffmail.com C++ 2 03-09-2006 05:51 AM
Copy String structure "A" to string structure "B" Leo Nunez C Programming 3 02-09-2005 05:14 AM
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM
Pointers to structure and array of structure. Excluded_Middle C Programming 4 10-26-2004 05:39 AM
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table. David Williams ASP .Net 2 08-12-2003 07:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57