Easy Tutorial
❮ Jsref Exec Regexp Prop Month Value ❯

clip Property


Definition and Usage

The clip property sets or returns the visible part of a positioned element.

Syntax

Set the clip property:

Return the clip property:

Value Description
auto Default. The element is not clipped.
rect(top right bottom left) The shape of the clip is defined by four coordinates.
inherit The value of the clip property is inherited from the parent element.

Browser Support

All major browsers support the clip property.

Note: IE7 and earlier versions do not support the "inherit" value. IE8 only supports "inherit" if the !DOCTYPE is specified. IE9 supports "inherit".


Example

Clip an image to the specified shape:


❮ Jsref Exec Regexp Prop Month Value ❯