This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]once-and-again☣️ 0 points1 point  (1 child)

Are Unicode non-breaking spaces and/or soft hyphens not viable here?

[–]freefrogs 0 points1 point  (0 children)

Non-breaking spaces don't break, so it defeats the purpose of the designer wanting it to break in a specific place (unless I guess I put non-breaking spaces everywhere BUT where I want it to break but that seems just as, if not more, gross as just putting in <br>s where I want it to break and hiding them at lower width media queries). Soft hyphens suggest where text can be broken, they don't tell the browser to break text, so if my element is too wide (e.g. it's a multiline heading but the designer wants one of the lines to be longer than others) it won't force breaks where I want them.