Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS or Table for Questionnair Layout

Status
Not open for further replies.

requested89

IS-IT--Management
Sep 6, 2005
44
GB
I have to create a questionnaire layout and I am wondering what the best method of layout is. Should I use CSS or Tables?

The questionnaire is very long and must go in one page. In theory it is exactly what tables were made for because there is a section heading like 'Your Details' and then the question on the left with 5 or 6 radio buttons to the right. This is repeated many times and a table seems ideal.
On the other hand having a single page with one ridiculously big monster of a table is an absolute nightmare to control and style. I am toying with the idea of using a page full of DIV's because it is easier to separate the sections and comment them etc.

What would you use?

Thanks in advance,

Chris
 
you can use several things - a table not being one of them.

you can use stylized divs, definition lists, lists, etc. it all depends on how you style the elements. i kind of like the definition list concept for this one.

*cLFlaVA
----------------------------
[tt]your mom goes to college[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
If you are comfortable using tables, and have no requirements for non-tabular pages (so no DDA issues, etc), then run with them if you find it easier.

Non-table pages are good for many things, but it really depends on your skills and requirements as to whether you should use them or not.

Having said that, using floated DIVs or SPANs can provide just as good a result, but require a better working knowledge of CSS to pull off.

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I think it comes down to my skill level too. I definitely think DIVs or SPANs is the best way to go in terms or code readability etc but I think to get everything lined up perfectly might be pretty challenging.

Thanks

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top