how to cut part of the image in css code example Example: how to crop images in css img{ object-fit: cover; }