Avoid character overflow in input field. How to mimic the input field behavior of Gmail? CSS only

Viewed 12

I am trying to implement same behavior as gmail auto input. The case is if in case amount of words overflows in input field it should line break.

As shown in Image:

My current behavior is: Text inside input overflows and its width remains constant.

enter image description here

0 Answers
Related