सीएसएस अनाथ संपत्ति
उदाहरण
प्रिंट करते समय, नीचे की ओर कम से कम 4 पंक्तियाँ और प्रत्येक पृष्ठ के शीर्ष पर 2 पंक्तियाँ प्रदर्शित करें:
@media print {
orphans: 4;
widows: 2;
}
परिभाषा और उपयोग
गुण उन orphans
पंक्तियों की न्यूनतम संख्या निर्दिष्ट करता है जो किसी पृष्ठ या स्तंभ के नीचे छोड़ी जानी चाहिए।
युक्ति: संपत्ति को भी देखें ।
widows
डिफ़ॉल्ट मान: | 2 |
---|---|
विरासत में मिला: | हां |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS3 |
जावास्क्रिप्ट सिंटैक्स: | वस्तु .style.orphans = "3" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
orphans | 25.0 | 8.0 | Not supported | 3.1 | 10.0 |
सीएसएस सिंटेक्स
orphans: integer|initial|inherit;
सम्पत्ति की कीमत
Value | Description |
---|---|
integer | Specifies the minimum number of lines that must be left at the bottom of a page or column. Negative values are not allowed |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |