[thelist] CSS technique for forms?

David Dorward evolt at david.us-lot.org
Thu Sep 9 10:16:24 CDT 2004


On Thu, Sep 09, 2004 at 10:58:49AM -0400, John.Brooking at sappi.com wrote:
> Okay, I've been converted to laying out pages with CSS instead of tables,

...

> me to be a number of gray areas, and one is them is forms. 

One school of thought is that forms are tabular data in which one column
is filled in by the user. Some people disagree. Certainly when you start
to get complex forms it can be difficult to structure them as tabular
data.


Styling forms: http://css-discuss.incutio.com/?page=FormElements
    
>    2) Put each label/field pair in a P tag

Why? Are they paragraphs?

> , with the label in a SPAN, and

Try <label> :)

> set a width on the SPAN.

width doesn't apply to elements with display: inline (unless they are
replaced elements, which <span>s are not) and most browsers do not
support display: inline-block.

-- 
David Dorward                                      http://dorward.me.uk



More information about the thelist mailing list