HomeReferencesCSS Properties

CSS Property: clip

Specifies the area of an absolutely positioned box that should be visible.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Possible Values

  • inherit
  • auto (default) - no clipping.
  • rect([top] [right] [bottom] [left]) - clips to the shape of a rectangle defined by the four coordinates (offset from the top left corner).

Example


#spod {
	position: absolute;
	clip: rect(10px 50px 30px 10px);
}