Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<input type="time" id='busStreet45' name='busStreet20' class="txtborder" value='12:00 AM'
size='12'
/>
Posted

1 solution

Increasing the font size on a text box will usually expand its size automatically.

HTML
<input type="text" style="font-size:16pt;"></input>


If you want to set a height that is not proportional to the font size, I would recommend using something like the following. This prevents browsers like IE from rendering the text inside at the top rather than vertically centered.

CSS
.form-text{
    padding:15px 0;
}</pre>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900