.myinput { width:100px; border:solid 1px red; display:inline-block; vertical-align:top; vertical-align:top; height:20px; font-size:12px; line-height:20px; overflow-x:hidden; } .input-text { display:block; margin:0px 5px; height:inherit; outline:0; white-space:nowrap; overflow-x:hidden; }