I have a div and it's width is `950px`. I've inserted an `img` inside the div. The img width is `960px`.  

So my question is if I inserted 960px width image inside the div want to crop `5px` from right and `5px` from left. Also need to the align the image middle and center.  

I cannot have a fixed width for the img like 960px may be 1000px or any value. So in each case I have to cut the img left and right proportionally.

I have alredy tried this but its not working
[center oversized image in div](https://stackoverflow.com/questions/14562457/center-oversized-image-in-div)