Controlling line break length
I'm trying to find a way to control how lines break in a menu list so that we don't end up with one word on the second line.
For example, I have a navigation menu that is 200px wide. One of the items is "Reform and city development plan". At the root, the line breaks like this:
City Development Resources and Plan
What I want is the minimum number of words or characters that need to be broken for it to look like this:
City development and resources and plan
I don't find anything in pure CSS to handle this, and before I went down the javascript crosshole I was wondering if anyone has something already handy.
Thanks for any help,
ty
+3
source to share
2 answers