0

input and textarea both are vertical-align: baseline. but why extra space under textarea why not in input.

div{
  border:1px solid red;
  margin-bottom: 10px;
  max-width: 400px;
}
input,textarea{
  border-width: 1px;
  height: 30px
}
textarea{
  height: 70px;
}
<div>
  <input type="text" placeholder="Name">
</div>
<div>
  <input type="text" placeholder="Email">
</div>
<div>
  <textarea type="text" placeholder="message"></textarea>
</div>

0 Answers0