javascript - How to expand textarea to fit text vertically and horizontally? -
how can using html, css , jquery?
i found question textarea resize based on content length expands height of textarea.
i want textarea precisely imitate user inputing. if user writing text row, row doesnt end until user hit "enter". width of textarea larger window. same thing height.
also im searching solution allows me change fontsize , textarea resize fit it.
does have idea?
the solution height fine.
to make horizontally proper, add following css,
textarea { width: 100%; display: block; resize: vertical; }
Comments
Post a Comment