CSS हैंगिंग-विराम चिह्न संपत्ति
उदाहरण
<p> तत्व में पहली पंक्ति के प्रारंभ किनारे के बाहर विराम चिह्न (यदि कोई हो) रखें:
p
{
hanging-punctuation: first;
}
परिभाषा और उपयोग
संपत्ति निर्दिष्ट करती है कि hanging-punctuation
क्या विराम चिह्न लाइन बॉक्स के बाहर शुरुआत में या टेक्स्ट की पूरी लाइन के अंत में रखा जा सकता है।
डिफ़ॉल्ट मान: | कोई नहीं |
---|---|
विरासत में मिला: | हां |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS3 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.hanging पंक्चुएशन = "पहला" |
ब्राउज़र समर्थन
कोई भी प्रमुख ब्राउज़र हैंगिंग-विराम चिह्न गुण का समर्थन नहीं करता है।
Property | |||||
---|---|---|---|---|---|
hanging-punctuation | Not supported | Not supported | Not supported | 10+ | Not supported |
सीएसएस सिंटेक्स
hanging-punctuation: none|first|last|allow-end|force-end|initial|inherit;
सम्पत्ति की कीमत
Value | Description |
---|---|
none | No punctuation mark may be placed outside the line box at the start or at the end of a full line of text |
first | Punctuation may hang outside the start edge of the first line |
last | Punctuation may hang outside the end edge of the last line |
allow-end | Punctuation may hang outside the end edge of all lines if the punctuation does not otherwise fit prior to justification |
force-end | Punctuation may hang outside the end edge of all lines. If justification is enabled on this line, then it will force the punctuation to hang |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |