I recently saw a pretty good article on SitePoint:
http://www.sitepoint.com/article/fancy-form-design-css
I think the use of ordered lists and coding form elements within list
items is a little easier to style instead of using dictionary lists or
paragraph tags.
Of course, it's a matter of personal preference, but I thought I'd
share.
Peace.
I used to be a definition list guy, but the amount of markup I would
code just got to be unmanageable. I've been using this lately, and it
seems to fit most situations. Where it really fails is when you need a
group of form elements. Like a bunch of check boxes or radio buttons.
<div class="form-element">
<label for="username">Username:</label>
<input type="text" name="username" id="username" />
</div>
div.form-element {
clear: both;
padding: 5px;
margin-bottom: 5px;
border-bottom: 1px solid #CCC;
}
div.form-element label {
width: 200px;
float: left;
I highly recommend the sitepoint book (http://www.sitepoint.com/books/
cssdesign1/)
> > > Peace.- Hide quoted text -
>
> - Show quoted text -
Fieldsets are something that I do occasionally use, but rarely have
forms with enough elements that would require extra markup. I did
however get a chance to use a few fieldsets on a checkout form for a
site I'm working on. I used it to separate the shipping, billing, and
payment information.
Maybe I'm just being hard-headed though because of how difficult they
are to style. That said, my excuses are quickly running out with
articles like that floating around.