Subject: | Inhibit line break after ′ (prime)? |
Posted by: | Stan Brown (the_stan_bro…@fastmail.fm) |
Date: | Sun, 24 Mar 2019 |
My text string
loo′nahr′
is in the middle of a <p> paragraph of text, and it happens to occur
at the end of a line.(*) Firefox is putting
loo′
at the end of one line and
nahr′
at the start of the next; in other words, Firefox inserts a line
break after the first of the two prime characters. This isn't
hyphenation: Firefox inserts a line break, not a line break and
hyphen.
Is there a CSS property, or some other technique, that indicates a
string of text and special characters not be broken across lines? I'd
prefer something that is NOT Mozilla-specific. I did look at the
property list, and found
word-break:keep-all
but my text isn't CJK so the property doesn't apply.
Thanks!
(*) Yes, given a different font (size) or different line width this
particular string would be in a different place. But the paragraph
contains more than a dozen similar strings. Thus the odds are that at
least one of them would be at the end of a line for many font sizes
or line widths.
--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://BrownMath.com/
http://OakRoadSystems.com/
HTML 4.01 spec:http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:http://preview.tinyurl.com/WhyWont