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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -