I have an input field in HTML and I’m having the problem that the text I entered as a placeholder isn’t fully displayed.
<input id="test" placeholder="Stadt oder Postleitzahl eingeben">
I already tried applying margin and padding to my input field but that didn’t fix my problem. So my question is whether the input placeholder has a maximum character length or how can I fix this?
#test {
padding-right: 100px;
}
<input id="test" placeholder="Stadt oder Postleitzahl eingeben">
>Solution :
When the width of the input element isn’t enough to fit the placeholder, it will be cut off.
#test {
width: 250px;
}
<input id="test" placeholder="Stadt oder Postleitzahl eingeben">