Home > Article > Web Front-end > How to set the placeholder prompt font size, color and margin_html/css_WEB-ITnose
I want the text to be a little further away from the left border and the font size to be smaller.
I’m not very good at using this new HTML5 tag!
A text-indent can fix the margins. At first I thought that adding spaces would be enough, but the cursor is still close to Very close. As for the color and size, there are answers online.
You can set the left padding style: padding-left:10px;
The font size is the same as when you enter the font size, that is, font-size:16px;
You You can set the left padding style: padding-left:10px;
The font size is the same as when you enter the font size, that is, font-size:16px;
It’s impossible. The font size you set will be the same size as the font size of the placeholder. Did you write it correctly?