We are currently struggling with keeping a 2000px wide by 580px height image centered when the browser is resized. It starts off centered, but as we adjust the size of the window, the image loses its centering. I have seen websites where a large image remains centered no matter how the browser dimensions change.
Could someone please guide me on how to achieve this effect?
<div style="height:580px; margin-left:-10%; position:relative; max-width: 2000px; background-image:url("/content/largeImage.png")">
<div class="container">
<p>
Do something else
</p>
</div>
</div>