CSS clip Property
CSS clip Property
The clip property is used to specify a rectangle to clip an absolutely positioned element. The rectangle is specified with four coordinates i.e, from the top-left corner of the element to be clipped. It is deprecated now and is replaced by the clip-path property.
Default Value:-
Its default value is auto.
Syntax:-
Its syntax is:- clip: auto | shape | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
auto | No clipping will be applied. |
shape | The only valid value is: rect (top, right, bottom, left) |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |