How to give the background-image path in CSS?

Spread the love

To give the background-image path in CSS, we set the background-image property.

For instance, we write

div {
  background-image: url("../../images/image.png");
}

to set the background-image property to the background image URL.

Leave a Reply

Your email address will not be published. Required fields are marked *