सीएसएस स्पष्ट संपत्ति
उदाहरण
<p> तत्व को बाईं ओर तैरने वाले तत्वों के नीचे धकेला जाता है (<p> तत्व बाईं ओर तैरने वाले तत्वों की अनुमति नहीं देता है):
img
{
float: left;
}
p.clear
{
clear: left;
}
परिभाषा और उपयोग
clear
संपत्ति फ़्लोट किए गए तत्वों के आगे प्रवाह को नियंत्रित करती है ।
संपत्ति निर्दिष्ट करती है कि उस तत्व के साथ क्या होना चाहिए जो clear
फ़्लोटिंग तत्व के बगल में है।
युक्ति: संपत्ति को भी देखें ।
float
डिफ़ॉल्ट मान: | कोई नहीं |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | सीएसएस 1 |
जावास्क्रिप्ट सिंटैक्स: | वस्तु .style.clear="दोनों" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
clear | 1.0 | 5.0 | 1.0 | 1.0 | 6.0 |
सीएसएस सिंटेक्स
clear: none|left|right|both|initial|inherit;
सम्पत्ति की कीमत
Value | Description |
---|---|
none | Default. The element is not pushed below left or right floated elements |
left | The element is pushed below left floated elements |
right | The element is pushed below right floated elements |
both | The element is pushed below both left and right floated elements |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस फ्लोट
एचटीएमएल डोम संदर्भ: स्पष्ट संपत्ति