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 :)

25th Apr 2020, 9:48 AM
Peter Svärd
Peter Svärd - avatar
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
25th Apr 2020, 11:43 AM
Abhay
Abhay - avatar
+ 3
Use background-position. background-position: 550px 550px; background-size: 100px 100px;
25th Apr 2020, 10:48 AM
Ore
Ore - avatar
- 1
another method is to crop the image
25th Apr 2020, 5:37 PM
David Paredes
David Paredes - avatar