That makes perfect sense.

Thanks for helping me realize that I really only want to eliminate
*presentation* attributes from my xhtml template, not *all*
attributes.

- Chaz


On 9/21/05, Christian Heilmann <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I have been googling without success around for a way to set maxlength
> > for form inputs in CSS -- is this possible as far as anyone knows?
> >
> > If not, and if I have to use Javascript to achieve this task, can
> > someone point me to a Javascript discussion list that is equivalent to
> > this CSS list?
>
> What is wrong with <input maxlengh="20" ... >? A maximum length is not
> a visual attribute, it is a data restriction, and therefore not the
> job of css. With JavaScript you"d need to read out the value length of
> the element on every keyup and stop at a certain length.
>
> --
> Chris Heilmann
> Blog: http://www.wait-till-i.com
> Writing: http://icant.co.uk/
> Binaries: http://www.onlinetools.org/
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to