![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi all. i've almost finished moving all the tags from html to my css. however, i can't find a way (if there's one) to move the property maxlength of an <input type=text ...> tag to the css in which i define a class for my input's (colors, width, font and so on). i'd appreciate if anybody could tell me if i'm looking for something that doesn't exist or if i just cannot find it. |
#3
| |||
| |||
|
|
hi all. i've almost finished moving all the tags from html to my css. however, i can't find a way (if there's one) to move the property maxlength of an <input type=text ...> tag to the css in which i define a class for my input's (colors, width, font and so on). You can't. Maxlength is an HTML attribute. It has nothing to do with |
#4
| |||
| |||
|
|
Maxlength is an HTML attribute. |
|
[... maxlength] effectively limits the maximum number of characters one can enter into a text field. |
#5
| |||
| |||
|
|
On Wed, 26 Jul 2006, Christian Kirsch wrote: Maxlength is an HTML attribute. Agreed. It's the "size" attribute which is relevant to presentation. [... maxlength] effectively limits the maximum number of characters one can enter into a text field. "effectively"? Yes, it tells a conforming client to limit the length of input; but it has no effect on those who submit malicious input. |
#6
| |||
| |||
|
|
Alan J. Flavell schrieb: "effectively"? Yes, it tells a conforming client to limit the length of input; but it has no effect on those who submit malicious input. or may be efficiently? English is not my native language, |
|
so please forgive me for having been carried away by adjectivities. |
#7
| |||
| |||
|
|
"effectively"? Yes, it tells a conforming client to limit the length of input; but it has no effect on those who submit malicious input. |
#8
| |||
| |||
|
|
Maxlength is not presentation, but functionality, so this must remain in the HTML code, such as the form action or the form method, or the input type. |
![]() |
| Thread Tools | |
| Display Modes | |
| |