clip CSS property defines the clipping region for an absolutely positioned element. However, it does not work if the
overflow property is set to
The following table summarizes the usages context and the version history of this property.
|Applies to:||Absolutely positioned elements|
|Animatable:||Yes. See animatable properties.|
|Version:||CSS 2, 3|
Warning:Do not use this property as it has been deprecated since CSS3 and removed from the future version. Though some browsers may still support it.
The syntax of the property is given with:
The example below shows the
clip property in action.
ExampleTry this code »
The following table describes the values of this property.
Clips an element. The only valid shape value is:
The top, right, bottom, and left may either have a length value or
||The element does not clip. This is default value.|
||Sets this property to its default value.|
||If specified, the associated element takes the computed value of its parent element
clip property is supported in all major modern browsers.