back

Clip

Clip is used to specify the area of an element that should be visible. Clip only works on absolutely positioned elements.

The options are:
(1) Auto, the default value, it means that the element does not clip.
(2) Shape, this allows you to define the area that should be visible. The only possible value is "rect(top,right,bottom,left)",top and bottom define the offset from the top border, right and left specify the offset from the left border. The values can be either a length or "auto".
(3) Inherit, the value is inherited from its parent element.


Example