Is there any way to set the width of
or &nnbsp;
to zero?
EDIT: An answer from 11 years ago suggests that it is impossible, but perhaps CSS has gotten new features since then?
I am working with a font that has only a hyphen glyph and lacks a glyph for em dash
. In order to simulate an em dash I wanted to concatenate two hyphens together with zero space between them and so that they also stay together during a wrap. Is that possible? At first I thought an answer on this question had the solution but the character that joins words ⁠
is rendered as a visible space.
I can wrap the —
in a span
and change the font with a CSS class, but I'm curious if it's possible to do anything with the non-breaking space.
P.S. I know that many other fonts have the em dash glyph, so I don't need to be given the very reasonable advice to change to a different font :-)