Is it possible to crop the part of image in image tag?

15a73b908da341a497791355eb98e39f.jpg

In multicolored blocks placed half-inserted icon with cars (cars with yellow background is one image), it is done via a background image (background). Tell me whether you like to achieve with the help of insert image using img? To also somehow was cut off half of the image? Without using JS
July 8th 19 at 11:58
2 answers
July 8th 19 at 12:00
Solution
Of course, negative margin, overflow: hidden
Example - codepen.io/anon/pen/WxRdRe
Thank you)) - ayden_Anderson commented on July 8th 19 at 12:03
July 8th 19 at 12:02
Solution
css for the parent block
overflow: hidden;
Thank you)) - ayden_Anderson commented on July 8th 19 at 12:05

Find more questions by tags DesignCSSLayoutHTMLUser interface