Syntax | selector {clip: rect(top, right, bottom, left);}
(OR)
selector {clip: value;}
|
---|---|
Usage | The clip property is used to specify a visible region of an absolutely positioned element. Everything outside of the specified region is hidden. The rect(top, right, bottom, left) function is used to specify the visible area as follows:
Note: Using the keyword auto specifies that no clipping will occur for the corresponding side. |
Keywords |
|
Applies To | Elements that have a position property value of absolute. |
Inherited | No |
Initial Value | auto |
The clip property is set to clip an image. |