I'm looking to achieve a centered image on the screen that stretches horizontally while maintaining set margins of 200px on each side. It's important that the image scales proportionally and remains centered regardless of the window size.
Although I can individually center or stretch the image, combining both tasks seems to be quite challenging without using JavaScript.
Remember, this solution must be CSS-based only with no reliance on JS.
Any assistance would be highly appreciated! :D
P.S. While there are many queries regarding scaling images based on window size, my issue focuses specifically on horizontal stretching between fixed pixel margins.