Previous Message
Next Message

Can CSS Be Used In Conjunction With JS To Provide Form Validation?

Sent by Michael Landis on 9 January 2004 21:09


Anthony wrote:

>What I'd like to do is provide a visual method of which fields are
required,
>which I am pretty sure I've got down now.  I have a thin red border around
>the fields, as well as an asterisk and bold face labels for those required
>fields.  But, for SELECT elements, CHECKBOX and RADIO buttons - I don't
know
>what to do.

Eric wrote:

> most browsers have one kind of problem or another with form element
styling.

Indeed. Form controls are made by the operating system, not the browser
(with the exception of Gecko-based browsers). So it gets tricky trying to
style them. You might want to consider styling their containers -- placing
a border or background around the entire select box or radio button group
-- instead of styling the elements themselves.

MikeL

______________________________________________________________________
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

Possibly related: