CSS बॉर्डर-बॉटम प्रॉपर्टी
उदाहरण
विभिन्न तत्वों के लिए निचली सीमा की शैली निर्धारित करें:
h1 {
border-bottom: 5px solid red;
}
h2 {
border-bottom: 4px dotted blue;
}
div {
border-bottom: double;
}
परिभाषा और उपयोग
संपत्ति (निम्न क्रम में) के border-bottom
लिए एक आशुलिपि संपत्ति है:
यदि बॉर्डर-बॉटम-कलर छोड़ा जाता है, तो लागू किया गया रंग टेक्स्ट का रंग होगा।
डिफ़ॉल्ट मान: | मध्यम कोई रंग नहीं |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | हाँ, व्यक्तिगत गुण देखें । एनिमेटेबल के बारे में पढ़ें |
संस्करण: | सीएसएस 1 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.borderBottom="15px डॉटेड लाइटब्लू" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
border-bottom | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
सीएसएस सिंटेक्स
border-bottom: border-width border-style border-color|initial|inherit;
सम्पत्ति की कीमत
Value | Description |
---|---|
border-bottom-width | Required. Specifies the width of the bottom border. Default value is "medium" |
border-bottom-style | Required. Specifies the style of the bottom border. Default value is "none" |
border-bottom-color | Optional. Specifies the color of the bottom 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 संदर्भ: बॉर्डरबॉटम प्रॉपर्टी