0

How to view crop selection of an image?

https://code.sololearn.com/W06ZDHI4xb7T/?ref=app i have an image within a div tag and width and height of div tag is 100% 100px respectively. but cuz image size is too big its overflow the div tag. and if i set the height and width to img tag then its wrap the image where i want to crop it?

18th Jun 2018, 6:01 AM
ajbura
ajbura - avatar
3 Réponses
+ 5
Add - overflow: hidden; in div.imgContainer https://www.sololearn.com/learn/CSS/1117/?ref=app Look at the lesson for info
18th Jun 2018, 6:09 AM
Utkαrsh
Utkαrsh - avatar
+ 1
Hi ajbura ! FYI -- Utkarsh did a good job of answering your exact question. If you have a different one now, you may want to rearticulate it. :)
18th Jun 2018, 6:29 AM
Janning⭐
Janning⭐ - avatar
0
use the JavaScript canvas to crop it
18th Jun 2018, 6:25 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar