import img css code example
Example 1: how to add an image in css
.element {
background-image: url("imageFile.png");
}
Example 2: how to add image with url in css
background-image: url('images/my-image.png');
.element {
background-image: url("imageFile.png");
}
background-image: url('images/my-image.png');