2

Here is a simplified of my code:

div{
  border: 1px solid;
}
<div>
  <textarea></textarea>
</div>

As you can see, there is a whitespace under the textarea (something like 5px of margin-bottom) which is all by defaul. Since I have never styled the textarea nor the outer div.

So, how can I remove that space? Noted that, giving margin: 0px; to the textarea won't work.

Martin AJ
  • 6,261
  • 8
  • 53
  • 111
  • didn't you check this answer [Extra space under textarea](https://stackoverflow.com/questions/7144843/extra-space-under-textarea-differs-along-browsers) – Sudhir Bastakoti Jul 06 '21 at 08:21

1 Answers1

-1

You can update your div css codes like this:

div{
  border: 1px solid;
  display: flex;
}
emrez
  • 316
  • 2
  • 11