CSS वर्ड-स्पेसिंग प्रॉपर्टी
उदाहरण
निर्दिष्ट करें कि <p> तत्वों में शब्दों के बीच का स्थान 30 पिक्सेल होना चाहिए:
p
{
word-spacing: 30px;
}
परिभाषा और उपयोग
word-spacing
गुण शब्दों के बीच सफेद स्थान को बढ़ाता या घटाता है ।
नोट: नकारात्मक मानों की अनुमति है।
डिफ़ॉल्ट मान: | साधारण |
---|---|
विरासत में मिला: | हां |
एनिमेटेबल: | हां। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | सीएसएस 1 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.wordSpacing="20px" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
word-spacing | 1.0 | 6.0 | 1.0 | 1.0 | 3.5 |
सीएसएस सिंटेक्स
word-spacing: normal|length|initial|inherit;
सम्पत्ति की कीमत
Value | Description | Play it |
---|---|---|
normal | Defines normal space between words (0.25em) . This is default | |
length | Defines an additional space between words (in px, pt, cm, em, etc). Negative values are allowed. Read about length units | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस टेक्स्ट
एचटीएमएल डोम संदर्भ: वर्डस्पेसिंग संपत्ति