Previous Message
Next Message

Designing forms with XHTML/CSS

Sent by Jukka K. Korpela on 21 August 2003 20:08


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
http://www.cs.tut.fi/~jkorpela/forms/tables.html

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: