soft-hyphen

Soft hyphen in HTML (<wbr> vs. ­)

*爱你&永不变心* 提交于 2019-11-26 15:46:19
How do you solve the problem with soft hyphens on your web pages? In a text there can be long words which you might want to line break with a hyphen. But you do not want the hyphen to show if the whole word is on the same line. According to comments on this page <wbr> is a non standard "tag soup invented by Netscape". It seems like ­ has its problems with standard compliance as well . There seems to be no way to get a working solution for all browsers . Which is your way for handling soft hyphens and why did you choose it? Is there a preferred solution or best practice? See related SO