You are here: Re: form elements: sizing of text areas « HTML « IT news, forums, messages
Re: form elements: sizing of text areas

Posted by Jukka K. Korpela on 12/16/05 08:54

gerg <noemail@noemail.com> wrote:

> <input class="loginform" name="user" type="text" size="10">
> <input class="loginform" name="pass" type="password" size="10">
>
> Both have a size of 10, however the password field in IE looks smaller
> than the regular field.

Really? Not here.

Wait... wait... on Windows XP, there is a _one pixel_ difference in the
widths. It's probably a design mistake in IE, so and maybe they'll fix it.
Maybe you can submit a bug report

> Any work around this? Is this an IE problem?

Is this a problem, seriously? Whose problem? You are setting up login form,
not creating a piece of art, right?

But of course there are solutions and workarounds:

- Use input type="text" for both. This may improve security, and it surely
improves usability.

- Set explicit width, e.g. (CSS code)
input.loginform { width: 6em; }

- Set the font to monospace, which is a good idea anyway and seems to
magically make the one-pixel difference vanish:
input.loginform { font-family: Courier New, monospace; }


--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

 

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

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