I have a carousel with background images similar to this website
I need the images in my carousel to stretch to 100% of the browser width. When the user adjusts the browser size, I want the image to be cropped on the right and left sides without changing its height. The Bootstrap carousel layout is being utilized.
The desired end result should resemble something like this:
A blue rectangle represents the container whose width must remain constant. As the browser shrinks, the background image (featuring dark green scenery with shoes) should crop on the right and left to fit within the boundaries of the container's borders.
What would be the most effective approach to achieve this?