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