css - Set input width to fit text size -
i have , input icon, looking this:
<div class="input-with-icon"> <input type="text" value="abcdefeghijklmnopqrtvuvwxyz" class="form-control"> <span class="icon icon-calendar"></span> </div>
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
Post a Comment