Using a table to structure a form?

J

John Salerno

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?
 
T

Travis Newbury

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.
 
B

Bergamot

John said:
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.
 
J

John Salerno

John Salerno said:
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.
:)
 
C

Chris F.A. Johnson

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.
 
T

Travis Newbury

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 shit... 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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top