Nate,
That's how I do it when I'm using templates:
http://act.arlington.ma.us/auditions.html
(This is a static page, not a form,
but the use of th for labels is consistent with what
you're talking about.)
-Norton
Nathan Wiger wrote:
Do you see any utility in putting FormBuilder field labels inside of
<th> elements to allow better style control? Here's what I'm thinking
right now:
<table class="myform">
<tr>
<th>Your Name</th>
<td>
<input class="myform_input" name="fullname" type="text">
</td>
</tr>
<tr>
<th>Gender</th>
<td>
<input class="myform_radio" id="gender"
name="gender" type="radio" value="M" />
<label for="gender">M</label>
<input class="myform_radio" id="gender"
name="gender" type="radio" value="F" />
<label for="gender">F</label>
</td>
</tr>
</table>
This would allow a stylesheet to say something like this (thanks Norton):
table.myform {}
table.myform tr {}
table.myform td {}
table.myform th {}
And per Peter to get around CSS2 selector problems:
.myform_input { }
.myform_radio { }
Thoughts?
-Nate
|