disable line break css code example Example 1: css prevent line break white-space: nowrap; Example 2: line not breaking css white-space: break-spaces;