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