<span style=" display:inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 13ch;"> Lorem ipsum dolor sit amet </span>
<input maxlength="10" />