Background-size invalid property

Hi, I am trying to set up an image in my css code, but i get an error saying that background-size is an invalid property value.Does anyone possibly know why this is?

    width: 90%;
    height: 100%;
    background-image: url("/challenge1-NFT-card/images/image-equilibrium.jpg");
    background-size: fit;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 3vh;
    margin-top: 2vh;
    align-self: center;

The error is telling you why. Fit is not a valid value for background-size

Here is a list of values that are valid

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.