Looking for a way to use an image with a height of 300px and a width of 1600px as a background in a div element?
Although the div element's height can be extended beyond 300px, it results in an empty space at the top while covering the width.
The desired outcome is for the background image to perfectly cover the entire div in both height and width.
Here's the issue illustrated with a div height of 450px: https://i.sstatic.net/UsR9t.png
Utilizing tailwindcss and next.js
<div className="bg-[url('/image.jpg')] w-full h-[250px] bg-center-bottom bg-no-repeat bg-cover mb-8 md:bg-cover md:h-[350px]">
</div>