Nearby lessons
48 of 71⬜ Tailwind CSS - Whitespace
📖 Overview
Whitespace utilities control how whitespace (spaces, tabs, newlines) is handled in text.
These map to the CSS white-space property.
📏 Whitespace Utilities
Available utilities:
whitespace-normal- Normal whitespace handling (default)whitespace-nowrap- Prevent text from wrappingwhitespace-pre- Preserve whitespace and newlineswhitespace-pre-line- Preserve newlines onlywhitespace-pre-wrap- Preserve whitespace, allow wrappingwhitespace-break-spaces- Preserve spaces, allow wrapping
Example02
Loading editor…
🧠 Test Your Knowledge
2 QuestionsProgress: 0 / 2