I have an image called background.png with dimensions of 500X400 px, and a HTML div that is 150X100 px in size.
My goal is to display a specific portion of the image background.png starting from the top-left coordinates (x: 50, y: 50) to the bottom-right coordinates (x1: 350, y1: 250) inside the div.
The portion of background.png I want to show has dimensions of 300X200, which is twice the size of the HTML div.
I'm looking for a way to resize this image portion so it fits perfectly within the div using CSS or jQuery.