Justify text to fill a div

后端 未结 4 702
不知归路
不知归路 2020-12-21 12:46

What i want to do is something like this:

1 2 3 4 5
6       7
8 9 10 11

With this code:

4条回答
  •  无人及你
    2020-12-21 13:42

    Justify only takes up the complete line when the text wraps to the next line. If you want it to wrap you need a narrower div width, and you need to remove your
    s.

    You could start with something like this though (just not sure how to place the 7 at the same place as the 5 and the 11):

    1 2 3 4 5
    6 7
    8 9 10 11

提交回复
热议问题