I\'m trying to create a textarea
that looks exactly like a div
.
However, on iOS there\'s 3 pixels coming from somewhere that I can\'t remove.>
Based off the previous answers it seems like the best way to tackle this is by adding a margin-left: -3px
to the textarea element. We can do this with some CSS tackling particularly iOS Safari which won't mess things up on Android
textarea @supports (-webkit-overflow-scrolling: touch) {
/* CSS specific to iOS devices */
margin-left: -3px;
}
textarea::placeholder @supports (-webkit-overflow-scrolling: touch) {
/* CSS specific to iOS devices */
text-indent: -3px;
}