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]
|