0

I am a newbie. I'm finding it hard to add background image to a box element. I've tried resetting the code, moving it to a new folder, resizing the image and changing the class but nothing works. The image doesn't show in the box When I inspect the element on Chrome, it says error file not found.

This is the CSS below

.static-width{
    width: 300px;
    height: 300px;
    background-color: #606060;
    background-image: url(Images\millylogo.jpg);
    background-repeat: no-repeat;
    background-position: center;
}
0stone0
  • 34,288
  • 4
  • 39
  • 64

1 Answers1

0

I think your path is not wright. You must to put the right path (absolute or relative) into the property. You should create a repository with your project and put all your files into it. A good documentation here

Quentin H
  • 91
  • 1
  • 7