Posted By

ricosushi on 01/29/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

ricosushi


css clip/mask


 / Published in: PHP
 

mask an image

  1. .clip {
  2. position: relative;
  3. height: 130px;
  4. width: 200px;
  5. border: solid 1px #ccc;
  6. }
  7. .clip img {
  8. position: absolute;
  9. clip: rect(30px 165px 100px 30px);
  10. }
  11.  
  12. /* usage */
  13.  
  14. <div class="clip">
  15. <img>
  16. </div>

Report this snippet  

You need to login to post a comment.