I haven't seen this done before but I'm hoping it can be done. I'm trying to have an automatic height of a textarea as text is written inside of it. As seen here...
https://i.stack.imgur.com/oxRfj.jpg
https://i.stack.imgur.com/XVzYT.jpg
Hopefully these images explain what I mean. the second image is also showing its theoretical max height.
https://jsfiddle.net/nupk26Ly/
.text-f {
border: none;
border-bottom: #183A4C solid 1px;
color: #183A4C;
font: 1rem/2.4rem Georgia, serif;
margin-top: 40px;
resize: none;
height: 40px;
width: 100%;
}