I'm currently working on a custom wordpress theme and I've encountered an issue that I need help with. I want to have a wide background image on my homepage with text centered on it, but I also want the height to remain the same as the browser window shrinks. Essentially, I want the image to crop from both sides as needed in order to stay centered. I came across a great example of what I'm looking for on this website, where the top image resizes accordingly when you adjust the browser size:
Any ideas on how I can achieve this effect?
Appreciate any assistance! :)