CSS कैप्शन-साइड प्रॉपर्टी
उदाहरण
तालिका कैप्शन का स्थान निर्दिष्ट करें:
#example1 {
caption-side: bottom;
}
#example2 {
caption-side: top;
}
परिभाषा और उपयोग
संपत्ति तालिका शीर्षक के स्थान को caption-side
निर्दिष्ट करती है।
डिफ़ॉल्ट मान: | ऊपर |
---|---|
विरासत में मिला: | हां |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | सीएसएस 2 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.captionSide = "नीचे" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
caption-side | 1.0 | 8.0 | 1.0 | 1.0 | 4.0 |
सीएसएस सिंटेक्स
caption-side: top|bottom|initial|inherit;
सम्पत्ति की कीमत
Value | Description | Play it |
---|---|---|
top | Puts the caption above the table. This is default | |
bottom | Puts the caption below the table | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस टेबल
एचटीएमएल डोम संदर्भ: कैप्शनसाइड संपत्ति