Vertically centering content of :before/:after pseudo-elements, Is there a way to use SVG as content in a pseudo element ::before or ::after. Line breaking opportunities can be indicated in different ways, but they all currently require a modification of the text or the markup. In HTML, use ­ to insert a soft hyphen. Using word-break: break-all; obviously works, but it also breaks words we really don't want it to. How can I check before my flight that the cloud separation requirements in VFR flight rules are met? Try it Note: In contrast to word-break, overflow-wrap will only create a break if an entire word cannot be placed on its own line without overflowing. So I want to know, can I create a simple CSS rule to break this string ONLY on the ampersand character? The word-wrap property is now treated by browsers as an alias of the standard property. page-break-after property. A journey in which we say But a lot. The only way you "see" a line break is by observing a format change in the content. Equation alignment in aligned environment not working properly. When escaping arbitrary strings, however, it's advisable to use \00000a instead of \A, because any number or [a-f] character followed by the new line may give unpredictable results: Nice article explaining the basics (does not cover line breaks, however). Note: While word-break: break-word is deprecated, it has the same effect, when specified, as word-break: normal and overflow-wrap: anywhere regardless of the actual value of the overflow-wrap property. Below is the implementation of this approach: Example-1: <!DOCTYPE html > <html> <head> <title> Customized break example </title> <style type="text/css"> .br { display: block; Always insert a page-break after element with id "toc" (table of content): Always insert a region-break after