Andrew Andrew - 3 months ago 13
CSS Question

HTML opposite of non-breaking space

In my HTML I have a very long word and I'm trying to force a specific break point only when there isn't enough room. What I need is a sort of conditional-breaking placeholder. How can I achieve this sort of thing?

Answer

Maybe the Unicode zero-width space would help: http://www.fileformat.info/info/unicode/char/200b/index.htm

The HTML entity is ​ e.g. over​flow will break the word between "over" and "flow" only when the full word doesn't fit.

Comments