word break on enter html csss code example Example 1: css prevent line break white-space: nowrap; Example 2: enter in css white-space: pre-line