Previous Message
Next Message

[css-d] Form layout using CSS

Sent by Ruvinskiy, Ray on 5 February 2003 19:07


Hi,

I'm trying to lay out a form of medium complexity using CSS only -- no
tables.

The idea is to split the form up into fieldsets and to have it so that
they're populated by <label>/<input type="text"> pairs, with the <label>
directly on top of the text box, and to have these pairs side-by-side
(horizontally), so that they can overflow onto the next line ad infinitum
(within the fieldset).

I've tried accomplishing this by enclosing each label/textbox pair in a div
and setting "float: left," which works well enough except that since
floating divs don't take up space in the normal flow, the fieldset collapses
and does not encompass its child from elements.

I would appreciate any ideas and also any resources for form design with CSS
in general

Thanks,

Ray
Previous Message
Next Message

Message thread: