Prevent horizontal "scrolling" of a text input? Prevent horizontal "scrolling" of a text input? google-chrome google-chrome

Prevent horizontal "scrolling" of a text input?


I had the same issue and found a CSS solution:

  #input-wrapper {    border: 1px solid #C9CFD5;    background-image: url('grid.png'); /* some tile image for the vertical lines */    width: 200px;    height: 50px;    overflow: hidden;  }  #input-wrapper input {    border: 0 none;    width: 400px;    height: 50px;    background: transparent;    font-size: 30px;    font-family: "Courier", monospace;    letter-spacing: 28px;    text-indent: 18px;  }
<div id="input-wrapper">  <input type="text" maxlength="4" length="4" value="1234" /></div>