I have a snippet of text that is controlled within a Content Management System. The CMS restricts the use of HTML or special characters such as or <span>.
Despite my attempts to adjust margins and padding, I cannot achieve the desired outcome.
Here is how the text appears on the screen:
<h1>This serves as an example of the headline.</h1>
I wish to avoid having a widow (a single word at the end of a chunk of text) so that when the line breaks, it considers the final 2 words as one unit.
For instance, "an example" should move to the next line instead of just “example” by itself.
Is there a method to accomplish this using only CSS?
I would be thrilled to see "white-space: no-widow" supported in CSS, even though it doesn't currently exist.