Style clear attribute
- ਪਿਛਲਾ ਪੰਨਾ caretColor
- ਅਗਲਾ ਪੰਨਾ clip
- ਇੱਕ ਪੱਧਰ ਉੱਪਰ ਵਾਪਸ ਜਾਓ ایچ تی ایم ال ڈوم اسٹائل آئیکن
Definition and Usage
clear
This attribute sets or returns the position of the element relative to floating objects.
clear
This attribute specifies which side of the element does not allow other floating elements.
See also:
CSS Tutorial:CSS ਫਲੌਟਿੰਗ
CSS Reference Manual:Clear Attribute
Instance
Example 1
Prevent floating objects on the left side of the text in the <p> element:
document.getElementById("myP").style.clear = "left";
Example 2
Return clear attribute:
alert(document.getElementById("myP").style.clear);
Syntax
Return clear attribute:
object.style.clear
Set clear attribute:
object.style.clear = "none|left|right|both|initial|inherit"
Attribute Value
Value | Description |
---|---|
none | Floating objects are allowed on both sides of the element. Default. |
left | Floating objects are not allowed on the left side of the element. |
right | Floating objects are not allowed on the right side of the element. |
both | Floating objects are not allowed on the left or right sides of the element. |
initial | Set this attribute to its default value. See initial。 |
inherit | This attribute is inherited from its parent element. See inherit。 |
Technical Details
Default Value: | None |
---|---|
Return Value: | ਸਟਰਿੰਗ, ਜਿਹੜੀ ਪਦਾਰਥ ਫਲੌਟਿੰਗ ਅਧਿਆਇ ਨਾਲ ਸਬੰਧਤ ਹੈ। |
CSS ਸੰਸਕਰਣਾਂ: | CSS1 |
ਬਰਾਉਜ਼ਰ ਸਮਰਥਨ
ਚਰਾਮੇ | ਐਜ਼ਾਰ | ਫਾਇਰਫਾਕਸ | ਸੈਫਾਰੀ | ਓਪੇਰਾ |
---|---|---|---|---|
ਚਰਾਮੇ | ਐਜ਼ਾਰ | ਫਾਇਰਫਾਕਸ | ਸੈਫਾਰੀ | ਓਪੇਰਾ |
ਸਮਰਥਨ | ਸਮਰਥਨ | ਸਮਰਥਨ | ਸਮਰਥਨ | ਸਮਰਥਨ |
- ਪਿਛਲਾ ਪੰਨਾ caretColor
- ਅਗਲਾ ਪੰਨਾ clip
- ਇੱਕ ਪੱਧਰ ਉੱਪਰ ਵਾਪਸ ਜਾਓ ایچ تی ایم ال ڈوم اسٹائل آئیکن