Home › Forums › CSS › [Solved] Vertical Text Align (Line Height) in Text Input › Re: [Solved] Vertical Text Align (Line Height) in Text Input
February 27, 2010 at 1:46 am
#71720
Member
alternatively, there’s another solution, but it’s a bit tricky.
Creave a div wrapper for your input, give the div a solid border, then remove the input field border
the html code will be look like this :
Code:
and the css will be look like this
Code:
.inputwrapper {
border:1px solid #666;
height: 12px;
overflow:hidden;}
border:1px solid #666;
height: 12px;
overflow:hidden;}
.myinput {
border:none;
margin:10px 0 0 0;}
well actually i haven’t tested the code yet :p but just try it ;)