I am trying to make a textarea element behave the same way an input element does. However, I am having issues with the padding. After setting the white-space property on the textarea to nowrap the padding on the right side is no longer being respected.
Here's a pic of what I mean:
CSS:
textarea {
width: 100%;
resize: none;
padding: 10px 15px;
overflow: hidden;
white-space: nowrap;
}
input {
width: 100%;
padding: 10px 15px;
}
Here's a link to a fiddle: https://jsfiddle.net/b384w0mn/
Any Ideas? Thanks in advance!
