@jasnjohnFeb 25.2004 — #A few months back I completely converted my site from tables to CSS layout, however, the only use I have for tables these days is still the FORM.
It's a very easy way of laying out the boxes and the associated labels.
I don't think it's necessarily a bad thing to use tables for the presentation of data/forms anyway, it's when you use them to layout your entire page that's frowned upon.
I'm still relatively new to this too, so my word is not gospel.
I'll go away and think about a CSS method anyway.
PS, It seems I've no need now as GREG has come up with a solution.
@TimeBanditFeb 25.2004 — #I'd go for a table but maybe someday it'll be easy and quick to do CSS. Or maybe someday make it a project for yourself to figure it out for future use (i'm talking to myself here also!) ?
Here's a link on using TH in your table and how it helps disabled folks use your table more easily:
@Robert_WellockFeb 25.2004 — #I am one of the "disabled folks" generally it is preferable to say you are making your form more "accessible" to a wider audience.
@Paul_JrFeb 25.2004 — #[i]Originally posted by Bigjohn [/i]
[B]Paul -
I've never seen this before. Can you explain what you're doing here:
<i> </i>div#form form div input, div#form form div textarea
Thanks!
John [/B][/QUOTE] I'm grouping multiple selectors so I can apply the styles to both without having to type the same styles for both selectors.
I wouldn't have to do that, except I have a <textarea> tag thrown in there for the message body. So instead of doing it like this: <i> </i>div#form form div input { /*Blah blah blah*/ } div#form form div textarea { /*Blah blah blah again*/ }
I can assign styles to multiple selectors by separating them with a comma, like I did. ?
But if you're wondering why I've got all sorts of form div textarea ect., those are descendant selectors. So only the input which is a descendant of a div which is a descendant of a form which is a descendant of another div whose id is "form" will have those styles applied.
Since that's just an example page, I don't really have to do that; and in most cases, you don't. But it's just a habit I have. ?
More info [URL=http://www.w3.org/TR/REC-CSS2/selector.html]here[/URL].