Vertical Align text in a Textbox
-
Hi Friends, As per the requirement, I have adjusted the height of the HTML Textbox to 10px and set the font-size to 10px using style property. When the page is loaded, the text is vertically aligned middle to the textbox in IE so that the text is visible completely. But in the browsers Mozilla Firefox and Netscape, the text is not vertically aligned, so the bottom portion of the text seems to be chopped in the textbox. How can I vertical align the text in the Textbox using CSS/Javascript or some other way? Thanks in advance. Subrahmanyam K
-
Hi Friends, As per the requirement, I have adjusted the height of the HTML Textbox to 10px and set the font-size to 10px using style property. When the page is loaded, the text is vertically aligned middle to the textbox in IE so that the text is visible completely. But in the browsers Mozilla Firefox and Netscape, the text is not vertically aligned, so the bottom portion of the text seems to be chopped in the textbox. How can I vertical align the text in the Textbox using CSS/Javascript or some other way? Thanks in advance. Subrahmanyam K