5 replies [Last post]
seb
Offline
Enthusiast
Last seen: 12 years 33 weeks ago
Joined: 2003-09-20
Posts: 208
Points: 0

How would you use CSS to code a complex form? I've given up and am just using nexted tables, is this acceptable? I'll post a screenshot in a bit.

Daybreak_0
Offline
Enthusiast
Sydney, Australia
Last seen: 15 years 44 weeks ago
Sydney, Australia
Timezone: GMT+10
Joined: 2003-11-15
Posts: 389
Points: 0

Complex forms

Personally I would use tables, as what you are displaying is tabulated data, and using CSS is a hell of a lot more work.

But, no problem if you have done it in nested divs.

Regards
Day

The only way to learn is to do it yourself

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 5 days 11 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

Complex forms

Hi Seb,
Try this article for hints on form accessibility.
http://www.accessify.com/tutorials/better-accessible-forms.asp

Usually I define a div as a row set it's width then float the label and field within it.

Hope That helps

Daybreak_0
Offline
Enthusiast
Sydney, Australia
Last seen: 15 years 44 weeks ago
Sydney, Australia
Timezone: GMT+10
Joined: 2003-11-15
Posts: 389
Points: 0

Complex forms

Tony for some reason the page you linked to does not scroll past the beginning of the form, From view source can see there is heaps more but can't get to it.

Day

The only way to learn is to do it yourself

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 5 days 11 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

Complex forms

Hi Daybreak_0,
Not very accessible then :roll:
What browser are you using?

Seb I have attached a quick demo using unordered list to contain the form.
It works well in everything I have tried it in so far. IE5, IE6, Opera 7.22, Netscape 7.1 and Firebird 7 all on Windows.
Semantically it's better then using divs to hold each row and possibly easier.

Daybreak_0
Offline
Enthusiast
Sydney, Australia
Last seen: 15 years 44 weeks ago
Sydney, Australia
Timezone: GMT+10
Joined: 2003-11-15
Posts: 389
Points: 0

Complex forms

IE6

I had a feeling it was browser related.

Regards
Day

The only way to learn is to do it yourself