Home >Web Front-end >HTML Tutorial >How to set the characters entered in the input box not to be at the leftmost end of the input box? _html/css_WEB-ITnose

How to set the characters entered in the input box not to be at the leftmost end of the input box? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:00:531219browse

It doesn’t look good if it’s on the far left. It’s best to have a certain distance between the first character entered and the far left border
Like this, it seems like there’s a gap of one character


Is there anything else? Setting method? Thank you


Reply to the discussion (solution)

padding

padding-left:20px;

#2 , #3 Already tried, it works, let’s learn

Statement:
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