I am trying to find a solution to center a 1600px container within a 940px container on my webpage. The goal is to keep the page centered at all times, with the main content being 940px wide. When I add an image that is 1600px, it aligns left with the 940px container and overflows by 660px to the right. Take a look at the image below for a visual example.
What I need is for the image to be centered within the 940px container. I have considered using multiple background images, but this method is not compatible with IE8. As someone who has never encountered this issue before, I am struggling to find a simple solution.
Currently, I have set the page width to a master container of 1600px. While this technically works, the page opens at the far left of the container, causing the main content to appear uncentered. Refer to Example 2 below for the desired outcome.
If anyone can provide assistance, I would greatly appreciate it. Thank you for your help!