Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Vertical Text Align (Line Height) in Text Input Re: [Solved] Vertical Text Align (Line Height) in Text Input

#71720
psychotronic
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;}

.myinput {
border:none;
margin:10px 0 0 0;}

well actually i haven’t tested the code yet :p but just try it ;)