samedi 18 avril 2015

clip in CSS keep the image size to original

I am using this css code to show portion of large image



img.ac{
position: absolute;
clip: rect(0px,72px,97px,0px);
}


My original image size is 949 px to 349px. When i clip image, size of image remains the same. How can i change size of the image to new cliped size?


Aucun commentaire:

Enregistrer un commentaire