When I try to place a rectangular image inside a square div, the image is trimmed evenly, as it cuts only one side. When I mean to center the image I mean distribute the image equally to both sides and cut equal pieces of the image to form the square made up of the image.
For example, I have a 300x200 image and a 200x200 div, if I put the image link inside the div it will cut 100px from a single side, instead I want it to cut 50px on each side of image. It would be something like displaying a 16: 9 aspect ratio video on a fullscreen 4: 3 monitor.