I need to center a image of width 1400px inside a width 960px div, and hide 220px for left and 220px for right.

<div style="width:960px;">
<img src="src" style="width:1400px" />
</div>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is pretty simple with the following CSS:
If you don’t know the height, you would probably want to use either a negative left margin, or position: relative.
If the size of your image is dynamic, you could try something like this:
Note that this requires an extra wrapper,
.inner.