CSS ClipThis CSS property specifies the visible area of an element. It applies to absolutely positioned elements (position: absolute;). It is generally used when the image is larger than its containing element. It allows us to define a rectangle, which is specified as four coordinates for clipping an absolutely positioned element. SyntaxPossible valuesauto: It is the default value that shows the element as it is. There will be no clipping. Exampleshape: It is used to clip an element. It clips the defined area of the element. Its valid value is rect(top, right, bottom, left). Example Next TopicCSS clip-path
|