Prasanna Venkatesh
1 min readNov 9, 2017

--

I think that you should set the max-width for the span. Otherwise, the browser or the container will show a scrollbar when the characters in the input exceed the width of the input.

Normal
Container gets scrollbar due to the increase in the (invisible) span’s width

--

--