Clip

The   property is used in CSS and certain HTML elements. It defines what portion of an element is visible. This property applies only to elements with.

Values

 * - A rectangular shape of the form:

rect /* standard syntax */


 * or

rect /* backwards compatible syntax */


 * where  and   specify offsets from the top border edge of the box, and   and   specify offsets from the left border edge of the box.


 * ,,  , and   may either have a   value ( ,  , etc) or.


 * - The element does not clip (default value).

HTML example:



CSS example:

img { clip:rect(40px 60px 100px 75px); }