Unfortunately, there is no way in HTML or CSS to express that some valid line break point is preferable to any other. If that were the case, we could find it in the CSS3 Text module, but its current project has nothing of the kind - only ways to control how valid line break points are defined.
What you can do is to prevent line breaks where they will usually be allowed. As a rule, space implies the possibility of line breaks, but using a space without a space (which can be written as if necessary), you forbid this.
For example, if you have a heading, for example, “Bridge over the Irish Sea and four other amazing plans,” then you can say that there is a better possibility of breaking the line after “and”, a good opportunity after “through”, and rather bad (although permissible) after "Irish" and so on. But you cannot do this in HTML or CSS, and usually not in typing programs. You can simply enable or disable breaks, for example. as in <h1>A bridge across the Irish Sea and four other amazing plans</h1> . For headings and headings, this can make sense, even if it means that you look at each space and decide whether to make it inextricable.
Jukka K. Korpela Aug 14 '13 at 19:35 2013-08-14 19:35
source share