How to change HTML5 placeholder CSS padding?

Spread the love

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.

Leave a Reply

Your email address will not be published. Required fields are marked *