CSS टेक्स्ट-जस्टिफाई प्रॉपर्टी
उदाहरण
जब टेक्स्ट-एलाइन को "जस्टिफाई" पर सेट किया जाता है, तो औचित्य विधि को "इंटर-वर्ड" पर सेट करें:
div
{
text-align: justify;
text-justify: inter-word;
}
परिभाषा और उपयोग
जब टेक्स्ट-एलाइन को "जस्टिफाई" पर सेट किया जाता है , text-justify
तो प्रॉपर्टी टेक्स्ट के जस्टिफिकेशन मेथड को निर्दिष्ट करती है।
डिफ़ॉल्ट मान: | ऑटो |
---|---|
विरासत में मिला: | हां |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS3 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.textJustify="inter-word" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
text-justify | Yes* | 11.0 | 55.0 | 10.0.3 | Yes* |
*यह सुविधा प्रायोगिक वेब प्लेटफ़ॉर्म सुविधा सक्षम करें वरीयता के पीछे है (सक्षम करने के लिए सेट करने की आवश्यकता है)। क्रोम में प्राथमिकताएं बदलने के लिए: क्रोम ब्राउज़र में "क्रोम: // झंडे" टाइप करें। ओपेरा में प्राथमिकताएं बदलने के लिए: ओपेरा ब्राउज़र में "झंडे" टाइप करें।
सीएसएस सिंटेक्स
text-justify: auto|inter-word|inter-character|none|initial|inherit;
सम्पत्ति की कीमत
Value | Description | Play it |
---|---|---|
auto | The browser determines the justification algorithm | |
inter-word | Increases/Decreases the space between words | |
inter-character | Increases/Decreases the space between characters | |
none | Disables justification methods | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |