css to crop an image instead of stretching it
- by amit
i am taking an image from a source, say, facebook.
now when i want to insert that image in a container with fixed width and height, the image stretches to fit that space. is there a way the image can display in its normal size and the rest of the area clipped out?