I have a div with contenteditable set to true to act as a text input. Now usually, it expands as some text reaches the end of the div, but if I resize the div, this stops happening. The browser no more does this. I tried to set the height after resizing it to auto, but it didn't help either.
Please help me on that one. Thanks.
If you've set the height absolute the browser will handle it absolute. So apply the following css rules to your div:
#yourdiv {
height: auto;
min-height: 150px;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With