How do I evenly add space between a label and the input field regardless of length of text?

后端 未结 5 1974
悲哀的现实
悲哀的现实 2021-02-01 04:13

Let\'s say I have 10 input fields and before the input fields on the left side I have span tag that holds the text to indicate what the user should enter into the field. I did

5条回答
  •  一整个雨季
    2021-02-01 04:37

    You can always use the 'pre' tag inside the label, and just enter the blank spaces in it, So you can always add the same or different number of spaces you require

    Hope you like my answer, It's a simple and efficient hack

提交回复
热议问题