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
Release: 2016-06-24 12:00:53
Original
1218 people have browsed it

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

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