0

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 :-)

Tim
  • 8,669
  • 31
  • 105
  • 183
  • @DanielA.White My only reservation is that it is from 11 years ago. CSS has gotten more features since then. – Tim Jul 10 '21 at 13:16
  • Are you talking about something like this? https://330k.github.io/misc_tools/unicode_steganography.html – m4n0 Jul 10 '21 at 13:38

0 Answers0