Good afternoon. I'm doing an activity in college, where I need to limit a text field to 100 characters, but I have to use only CSS for this.
I've tried these two ways:
Example 1:
.es1[type="text"]{
background-color: rgb(173,234,234);
font-weight: bolder;
width: 20ch;
Example 2:
.es1[type="text"]{
background-color: rgb(173,234,234);
font-weight: bolder;
max-width: 20ch;
But I could not. Thanks in advance.)