0
Image question
Is it possible to deside what part of a picture to show in a element? I have a box that's 100px high but my picture is 1000px. I want to show the middle part. I know i can crop the image in like Photoshop but i'm curius :)
3 Respuestas
0
If I am not wrong this is what you are looking for ,I tried and it works ,
https://stackoverflow.com/questions/11552380/how-to-automatically-crop-and-center-an-image
+ 3
Use background-position.
background-position: 550px 550px;
background-size: 100px 100px;
- 1
another method is to crop the image