CSS Crop Property

CSS 1

CSS 2

CSS 3

No No Yes

Description

This property allows a replaced element to be just a rectangular area of an object, instead of the whole object.

Syntax

crop: [value];

Possible values

  • [shape]
  • auto

Initial Value

Auto

Applies To

Replaced elements

Inherited

No

Media

Visual

Example

.class {
  crop: rect(0px, 115px, 85px, 30px) ;
}


View All CSS Properties