टेक्स्ट के बीच व्हाइटस्पेस सेट करने के लिए, white-space गुण का उपयोग करें। संभावित मान: normal, pre, nowrap।
उदाहरण
निम्न कोड चलाकर CSS में टेक्स्ट के बीच व्हाइटस्पेस सेट करें:
<html>
<head>
</head>
<body>
<p style="white-space:pre;">
This text has a line break and the white-space pre setting tells the browser to honor
it just like the HTML pre tag.
</p>
</body>
</html>
pre मान व्हाइटस्पेस और लाइन ब्रेक को संरक्षित करता है; nowrap टेक्स्ट को एक लाइन में रखता है।