Is there a solution to avoid line breaks after hyphens -
on a case-by-case basis that is universally compatible with all browsers?
For example:
Consider this text: 3-3/8"
, which in HTML appears as: 3-3/8”
The issue arises near the end of a line where, due to the hyphen, it wraps around to the next line instead of staying together as one word...
3-
3/8"
I've attempted to use the "zero width no break character", 
, but it hasn't yielded desired results...
3-3/8”
This problem has been observed in Safari and might be consistent across other browsers as well.
Provided below is my doctype
and character encoding information...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
Is there any effective method to prevent these line breaks following hyphens? I am only looking for a targeted solution rather than one that affects the entire page layout...
Check out the demo provided. Adjust the frame width until you notice the line breaking at the hyphen.