Clip an image into a specified shape:
The clip property sets or returns which part of a positioned element is visible.
The clip property is supported in all major browsers.
Return the clip property:
Set the clip property:
Value | Description |
---|---|
auto | Default. The element does not clip |
rect(top right bottom left) | Clips the shape defined by the four coordinates |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Default Value: | auto |
---|---|
Return Value: | A String, representing the part of a positioned element that is visible |
CSS Version | CSS2 |
Return the clip property:
CSS tutorial: CSS Positioning
CSS reference: clip property