You are here: Re: The <input> tag: should one use "width" or "size"? « HTML « IT news, forums, messages
Re: The <input> tag: should one use "width" or "size"?

Posted by Adrienne Boswell on 05/08/07 14:24

Gazing into my crystal ball I observed "Jukka K. Korpela"
<jkorpela@cs.tut.fi> writing in
news:BVW%h.160412$HE1.86966@reader1.news.saunalahti.fi:

> Scripsit aaronfude@gmail.com:
>
>> What's a better way to control the width of an input box? To use
>> "width", as in style="width: 200px", or size as in <input size=25>?
>
> Surely the latter, since as an author, you can estimate the typical
> length of input in characters but not in pixels. For all that you can
> know, 200px might correspond to 4 or 40 characters.
>

Agreed, as well as, as an author you may need to limit the user to a
certain number of characters, if for instance, the information is to be
posted to a database. Of course, in that case, you would also want to
check the size of the data server side.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация