Posted By

paulgrenwood on 11/10/09


css image

Versions (?)

Image Clip

 / 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.

  1. .clip img {
  2. position: absolute;
  3. clip: rect(top right bottom left);
  4. }

Report this snippet  


RSS Icon Subscribe to comments
Posted By: akshar on November 16, 2009

thank you :)

You need to login to post a comment.