A
A
Alexander2018-03-01 16:46:20
css
Alexander, 2018-03-01 16:46:20

How to indent input?

Example:
https://jsfiddle.net/zstxgsrf/3/
What is the right way to do this? As a result, the text in the input should not appear from the beginning, but after the label (which can be of any width).

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Egor Zhivagin, 2018-03-01
@pi4yyy

No one ever puts a label on top of an input )
If you need to style "label inside input", they are still put in a row and just style the wrapper.
For example

O
Oleg, 2018-03-01
@politon

Alternatively, if you really need it ;) https://jsfiddle.net/Politonius/m3kg30o3/1/

M
maber, 2018-03-01
@maber

input {padding-left: 30px;}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question