word-break, prefer normal but if not possible break-all
问题 I am creating a very thin page (it's being printed on receipt paper: 56mm wide) I am trying to display some text (in this case shipping selection). Sometimes this text is normal a number of spaced words, e.g. 'Signed for 1st Class', sometimes it is one long word, e.g. 'UK_RoyalMailSecondClassStandard'. My HTML/CSS doesn't know what the text will be (it's rendered php) My html is: <div style="margin: 0px;max-width: 56mm;font-family: Arial;border: 1px solid black;"> Break-all: <p> Your selected