You have to "match" with padding-bottom
, and not with height
.
OBS: I just don’t know why you want one input
with this layout, it doesn’t make sense since it can’t have more than one line...
#emailBox {
padding-bottom: 100px;
padding-top: 10px;
box-sizing: border-box
}
#emailBox {
height: 100px;
box-sizing: border-box
}
body {
display:flex;
}
<input id="emailBox" type="email" name="email" placeholder="padding-bottom: 100px;" class="emailBoxClass" />
<input id="emailBox2" type="email" name="email" placeholder="height: 100px;" class="emailBoxClass" />
TIP
Now if you want an "input" that can have more than one line of text, then you have to use the <textarea></textarea>
how different from the input
normal has closing tag and other global attributes that you can refer to here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea
The <textarea>
you can control the height with the attribute row
, which will determine how many rows of text line it will have before the scroll, or with height
even if you prefer.
#emailBox {
height: 100px;
box-sizing: border-box
}
<textarea id="emailBox" type="email" name="email" placeholder="height: 100px;" class="emailBoxClass"></textarea>
<textarea id="emailBox2" rows="5" type="email" name="email" placeholder="rows=5" class="emailBoxClass"></textarea>
I think he got confused. He wants a textarea instead of an input text.
– Alexandre Paiva
@Alexandrepaiva I’ve seen every question I preferred answers the way they asked rss... But somehow I left an Edit in the reply, worth the touch
– hugocsl