0

I want to add textarea of minimum height 27px and as we enter data that should increase its height.

CSS

textarea{
  min-height:27px;
}

HTML

<textarea>Text hello</textarea>
Bhawna
  • 705
  • 2
  • 11
  • 28

2 Answers2

1

You'd use div with contentEditable attribute

div {
    display:inline-block;
    border: solid 1px #000;
    min-height: 27px;
    width: 300px;
}
<div contentEditable="true">    
</div>
Marko Mackic
  • 2,293
  • 1
  • 10
  • 19
0

already textarea min-height is 80px so 27px is not working. you can use third party plugins.