I am creating a web page where the header has a main object and a descriptor, each of which is wrapped in tags.
I looked at the <wbr> tag and it only works if you have long lines without spaces. But I have spaces with interruptions in the text.
I need a piece that I can insert between two elements or characters that tell the browser that if it is provided with the following code:
<span>How do you tell a browser,</span><span>"if you need to wrap, wrap here first"<span>
Extract this:
How do you tell the browser, "if you wrap first, wrap here"?
But if there is not enough space, first split it by specifying this:
As you indicate the browser,
"if you need to wrap, wrap first"
Then, if it contracts, further tearing the line where ever needed.
Is there a character, tag, or CSS rule that says, "Insert a line break right here before you even think about putting a line break somewhere else?
user764357
source share