/ Published in: CSS
The clip property is like a mask. It allows you to mask the content of an element in a rectangle shape. To clip an element: you must specify the position to absolute. Then, specify the top, right, bottom, and left value relative to the element.
Expand |
Embed | Plain Text
.clip img { position: absolute; clip: rect(top right bottom left); }
Comments
Subscribe to comments
You need to login to post a comment.

thank you :)