How can css make a full height textarea block by content?
4 answers
You can absolute positioning for example.
{ top:10px; bottom:10px; position:absolute; } here and stretch you.
or js juzat
- This is not the content. - Qwertiy ♦
- And if with JS, but without third-party libraries, how easy is it possible to implement? - Bokov Gleb
|
In this case, I advise you to use instead of textarea:
<div contenteditable="true"> Я редактируюсь! </div> - Your answer does not add anything new to the already issued answers, except that you "provide the complete code snippet" (very banal). I recommend focusing on questions that are currently unanswered. Here, you will not help people either, and you don’t collect much reputation (if you are very interested in it). - AK ♦
|
It seems in any way.
Use a div with attribute contenteditable . Only he will not be in the form of the form and it is possible to format the text in it.
More about the option with contenteditable in this answer .
- @Jony, the answer is updated. - Qwertiy ♦
|
textarea { display: block; height: 100%; } |