CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS clip Property

CSS clip Property

 

 

The clip property is used to specify a rectangle to clip an absolutely positioned element. The rectangle is specified with four coordinates i.e, from the top-left corner of the element to be clipped. It is deprecated now and is replaced by the clip-path property.

 

Default Value:-

 

Its default value is auto.

 

Syntax:-

 

Its syntax is:- clip: auto | shape | initial | inherit;

 

Further Explanation:-

 

Value Description
auto No clipping will be applied.
shape The only valid value is: rect (top, right, bottom, left)
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS