Need to prevent “£/$/€1,000,000!!!” or similar breaking over two lines at the forward slashes? CSS word-break, word-wrap, white-space not working for you?

Can’t find an answer on the internets? Me neither.

Quick fix: add a span and style it display:inline-block;.

Job done. Only tested on for Mac/iOS – but a fairly simple one, this – so should be safe to use out there in the dirty world.

Last updated on 5th September 2018