Home > Web Front-end > HTML Tutorial > How to set the placeholder prompt font size, color and margin_html/css_WEB-ITnose

How to set the placeholder prompt font size, color and margin_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:58:10
Original
2567 people have browsed it


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!


Reply to discussion (solution)

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;


No. Tried it!

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?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template