CSS text justify with letter spacing

后端 未结 9 1289
时光取名叫无心
时光取名叫无心 2020-12-01 12:29

Is there a way to automatically justify words using letter spacing, each in its row, to a defined width, using CSS?

For example, \"Something like this\" would look,

9条回答
  •  时光说笑
    2020-12-01 12:36

    Needed this too, so I've bundled the suggested technique in a simple to use jquery-plugin you can find here: https://github.com/marc-portier/jquery-letterjustify#readme.

    It uses the same procedure at its core, and adds some options to tweak. Comments welcome.

提交回复
热议问题