
Shobha
The best way to predict the future is to invent it
What is clip in CSS, and how is it used?
The clip property defines a rectangular clipping region for an element, making only the portion inside this region visible. It’s typically used for cropping elements in combination with absolute positioning. For example:
img {
position: absolute;
clip: rect(0, 100px, 100px, 0);
}
img {
position: absolute;
clip: rect(0, 100px, 100px, 0);
}