On Thu, 21 Aug 2003, Scott Blanchard wrote:
> Most of my application's forms contain a listing of elements that need a
> label and an input element (text, textarea, select). We have typically used
> a two cell table layout in order to get the labels aligned with the form
> element they describe and to get all form elements aligned vertically to a
> consistent margin. How would this best be accomplished with web standards?
This is a bit tricky, since the way to make the labels occupy the same
width would be - tables (in the CSS sense, i.e. table properties).
Whenever this is the case, it's quite possible that your HTML could
contain a _logical_ table, so you could use that and just do the fine
tuning in CSS. For some simple examples, as well as a simple CSS approach
that makes the labels floating elements, see
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/