You are here: Re: Input vertical-align « HTML « IT news, forums, messages
Re: Input vertical-align

Posted by Jonathan N. Little on 07/03/06 19:22

Jim Moe wrote:
> Hector wrote:
>> how can I set vertical align of an input to middle? the following style
>> didn't work. when I start to type some text it will place on top:
>>
> vertical-align only applies to inline and table-cell elements. <input>
> is neither.
> Although, to be honest, I cannot tell *what* <input> is; neither the
> HTML spec nor the strict DTD give me anything I could clearly grasp.
>
It
is an inline element.
http://www.w3.org/TR/html4/sgml/dtd.html#inline

<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; |
%formctrl;">
^^^^^^^^^^^^

The is why you need a block element between the opening FORM tag and an
INPUT element.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

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

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