Sometimes, we want to change HTML5 placeholder CSS padding.
In this article, we’ll look at how to change HTML5 placeholder CSS padding.
How to change HTML5 placeholder CSS padding?
To change HTML5 placeholder CSS padding, we set the line height.
For instance, we write
input::-webkit-input-placeholder {
line-height: 1.5em;
}
to set the placeholder’s line height to 1.5em.
Conclusion
To change HTML5 placeholder CSS padding, we set the line height.