Serhiy Serhiy -4 years ago 93
AngularJS Question

how to set space at the beginning of input?

Is it possible to set space at the beginning of input?
when I open input field with ng-model there, the text should have space between input beginning and text.
like shown on img

enter image description here

Answer Source

You can add a class to your input and give it padding. You could also do it on the input directly, but that would affect all input fields, so not sure if that's what you are looking for.

 .space {
    padding-left: 10px
    }
  <input class="space" type="text" value="Need space there">

   

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download