- From: Yude.Hu <yude.hu@zoomsystems.com>
- Date: Tue, 07 Mar 2000 10:20:41 +1100
- To: Andy Waite <andy@mailroute.com>
- Cc: www-html@w3.org
Thanks Andy. I am using style sheet as well, but I could not make it work. I guess the "width" attribute does not match the "size" and the "maxlength" in the input text field. I am not sure if there are any properties defined in style sheet for the size and maxlength of the input text, or am I missing something here? Could you explain more specific please? yh Andy Waite wrote: > > At 11:29 28/02/2000 +1100, you wrote: > >Hi, > > > >Sorry for asking the following question if it is not appropriate to this > >list. Is it possible to resize the length of the text input display > >based on current window width? The size of the text input does not > >accept a function, the following initial statement only made one > >character length of the text input. > > > >............. > ><script language = JavaScript> > >function getSize () > >{ > > return Math.floor (innerWidth / 20); > >} > ></script> > ><form> > ><input type = text size = "getSize ()"> > >.............. > > > >Thank you. > > > >yh > > You can use CSS1 to control the width, e.g. > > <input type="text" style="width: 50%;">
Received on Monday, 6 March 2000 18:14:19 UTC