Style clip Property
Style clip Property
The clip property is used to either set or return which part of a positioned element is visible.
Syntax:-
Its syntax is:- object.style.clip OR object.style.clip = auto|rect(top right bottom left)|initial|inherit
Return:-
Its return is:- string having part of a positioned element that is visible
Further Explanation:-
Value | Description |
---|---|
auto | The element does not clip. |
rect(top right bottom left) | Clips shape defined by four coordinates. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |