Home / CSS Tips Generated By ChatGPT / Controlling Text Wrapping with white-space in CSS Use the white-space property to control how white space and line breaks within an element are handled. Source Code .nowrap { white-space: nowrap; /* Prevents text from wrapping */ }