CSS बॉर्डर-टॉप-चौड़ाई संपत्ति
उदाहरण
ऊपरी सीमा के लिए चौड़ाई निर्धारित करें:
div {border-top-width: thin;}
नीचे और अधिक "इसे स्वयं आज़माएं" उदाहरण।
परिभाषा और उपयोग
border-top-width
संपत्ति तत्व की शीर्ष सीमा की चौड़ाई निर्धारित करती है ।
नोट: संपत्ति से पहले हमेशा सीमा-शैली या
सीमा-शीर्ष-शैली संपत्ति घोषित करें border-top-width
। इससे पहले कि आप चौड़ाई बदल सकें, एक तत्व की सीमाएँ होनी चाहिए।
डिफ़ॉल्ट मान: | मध्यम |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | हां। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | सीएसएस 1 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.borderTopWidth="5px" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
border-top-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
सीएसएस सिंटेक्स
border-top-width: medium|thin|thick|length|initial|inherit;
सम्पत्ति की कीमत
Value | Description | Play it |
---|---|---|
medium | Specifies a medium top border. This is default | |
thin | Specifies a thin top border | |
thick | Specifies a thick top border | |
length | Allows you to define the thickness of the top border. Read about length units | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
और ज्यादा उदाहरण
उदाहरण
ऊपरी बॉर्डर की चौड़ाई को मध्यम पर सेट करें:
div {border-top-width: medium;}
उदाहरण
ऊपरी सीमा की चौड़ाई मोटी पर सेट करें:
div {border-top-width: thick;}
उदाहरण
शीर्ष सीमा की चौड़ाई 1px पर सेट करें:
div {border-top-width: 1px;}
उदाहरण
शीर्ष सीमा की चौड़ाई 15px पर सेट करें:
div {border-top-width: 15px;}
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस बॉर्डर
सीएसएस संदर्भ: सीमा-शीर्ष संपत्ति
एचटीएमएल डोम संदर्भ: सीमाटॉपविड्थ संपत्ति