Computer >> कंप्यूटर ट्यूटोरियल >  >> प्रोग्रामिंग >> JavaScript

CSS में white-space गुण का उपयोग

white-space गुण का उपयोग टेक्स्ट के प्रवाह और फ़ॉर्मेटिंग को नियंत्रित करने के लिए किया जाता है।

उदाहरण

निम्न कोड चलाकर white-space गुण लागू करें:

<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>
  1. - CSS में border-right-width गुण का उपयोग

    border-right-width गुण दाएं बॉर्डर की चौड़ाई बदलता है। निम्न कोड चलाकर border-right-width गुण लागू करें: उदाहरण <html> <head> </head> <body> <p style=border-right-width:6px;border-style:solid;> This is demo content. </p> </body> </ht

  1. - CSS में border-right-style गुण का उपयोग

    border-right-style गुण दाएं बॉर्डर की शैली बदलता है। निम्न कोड चलाकर border-right-style गुण लागू करें: उदाहरण <html> <head> </head> <body> <p style=border-width:4px;border-right-style:dashed;> This is demo content </p> </body> </html

  1. - CSS white-space प्रॉपर्टी

    white-space प्रॉपर्टी का उपयोग किसी तत्व के अंदर व्हाइट स्पेस (स्पेस, टैब, लाइन ब्रेक) को कैसे संभाला जाए, इसे नियंत्रित करने के लिए किया जाता है। उदाहरण <!DOCTYPE html> <html> <head> <style> p.demo1 { white-space: normal; } p.demo2 {