CSS टेक्स्ट-इंडेंट प्रॉपर्टी
उदाहरण
विभिन्न मूल्यों के साथ पाठ की पहली पंक्ति को इंडेंट करें:
div.a {
text-indent: 50px;
}
div.b {
text-indent: -2em;
}
div.c {
text-indent:
30%;
}
परिभाषा और उपयोग
text-indent
संपत्ति टेक्स्ट-ब्लॉक में पहली पंक्ति के इंडेंटेशन को निर्दिष्ट करती है ।
नोट: नकारात्मक मानों की अनुमति है। यदि मान ऋणात्मक है, तो पहली पंक्ति को बाईं ओर इंडेंट किया जाएगा।
डिफ़ॉल्ट मान: | 0 |
---|---|
विरासत में मिला: | हां |
एनिमेटेबल: | हां। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | सीएसएस 1 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.textIndent="50px" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
text-indent | 1.0 | 3.0 | 1.0 | 1.0 | 3.5 |
सीएसएस सिंटेक्स
text-indent: length|initial|inherit;
सम्पत्ति की कीमत
Value | Description | Play it |
---|---|---|
length | Defines a fixed indentation in px, pt, cm, em, etc. Default value is 0. Read about length units | |
% | Defines the indentation in % of the width of the parent element | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस टेक्स्ट
एचटीएमएल डोम संदर्भ: टेक्स्ट इंडेंट संपत्ति