Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 389
Serhiy Avatar asked Nov 26 '25 12:11

Serhiy


1 Answers

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">

   
like image 104
Christophvh Avatar answered Nov 28 '25 01:11

Christophvh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!