I want to create a header with a background image. Now, the size of the image is 2748px wide and 349px high. And the image should always fit in. So I created this CSS code, but something is wrong.
height: calc(2748px / 100vw * 349px);
I want to create a header with a background image. Now, the size of the image is 2748px wide and 349px high. And the image should always fit in. So I created this CSS code, but something is wrong.
height: calc(2748px / 100vw * 349px);