CSS बॉर्डर-लेफ्ट प्रॉपर्टी
उदाहरण
विभिन्न तत्वों के लिए बाईं सीमा की शैली निर्धारित करें:
h1 {
border-left: 5px solid red;
}
h2 {
border-left: 4px dotted blue;
}
div {
border-left: double;
}
परिभाषा और उपयोग
संपत्ति (निम्न क्रम में) के border-left
लिए एक आशुलिपि संपत्ति है:
- सीमा-बाएं-चौड़ाई
- सीमा-बाएं-शैली (आवश्यक)
- सीमा-बाएं-रंग
यदि बॉर्डर-बाएं-रंग को छोड़ दिया जाता है, तो लागू किया गया रंग टेक्स्ट का रंग होगा।
डिफ़ॉल्ट मान: | मध्यम कोई रंग नहीं |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | हाँ, व्यक्तिगत गुण देखें । एनिमेटेबल के बारे में पढ़ें |
संस्करण: | सीएसएस 1 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.borderLeft="3px बिंदीदार नीला" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
border-left | 1.0 | 4.0 | 1.0 | 3.5 | 1.0 |
सीएसएस सिंटेक्स
border-left: border-width border-style border-color|initial|inherit;
सम्पत्ति की कीमत
Value | Description |
---|---|
border-left-width | Optional. Specifies the width of the left border. Default value is "medium" |
border-left-style | Required. Specifies the style of the left border. Default value is "none" |
border-left-color | Optional. Specifies the color of the left border. Default value is the color of the text |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस बॉर्डर
HTML DOM संदर्भ: बॉर्डर लेफ्ट प्रॉपर्टी