Fill available spaces between labels with dots or hyphens

后端 未结 6 625
栀梦
栀梦 2020-11-30 04:46

I have a page with labels which are contained in a div, the labels has a variable with and i want to fill spaces between both with characters, dots or \'-\'.

For ex

6条回答
  •  孤街浪徒
    2020-11-30 05:26

    You need to use CSS to adjust the layout of the two pieces of content. Either break up the label into two labels and apply css classes to each, or wrap each bit of text inside your label with a tag and style them that way.

    Filling empty space with characters to try to adjust the layout is not the correct approach, and wouldn't be recommended for the same reasons you don't format your text documents by adding space characters everywhere.

提交回复
热议问题