break in css code example Example 1: how to wrap text in div css .example { overflow-wrap: break-word; } Example 2: enter in css white-space: pre-line