Balanced text wrapping in HTML

后端 未结 4 1147
旧时难觅i
旧时难觅i 2020-12-03 21:03

In HTML, is there a way to evenly distribute text that is broken across multiple lines?

E.g., I don\'t want:

   Here is some really long label that ends         


        
4条回答
  •  既然无缘
    2020-12-03 21:42

    Adobe has proposed that a new css property be added text-wrap: balance.

    In the meantime they have created a jQuery plugin named balance-text to achieve the same result.

提交回复
热议问题