css - Set input width to fit text size -


i have , input icon, looking this: screenshot

<div class="input-with-icon">   <input type="text" value="abcdefeghijklmnopqrtvuvwxyz" class="form-control">   <span class="icon icon-calendar"></span> </div> 

live demo

is possible adjust css input fit text width? e.g. stretch type.

currently, .input-with-icon has fixed width, if set auto, input won't stretch.

you have many option that. first option change <input type="text"> <textarea class="form-control"></textarea>. <textarea> can handle better characters <input type="text">.
second option use this example. example @megakorre in this link. dont forget vote or put check if got answer. that's dude! happy coding! :)


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -