Help please, why the background image does not appear? If you just insert it into the HTML as an image, then everything is in order, but as a background image, there’s no way .. Thank you in advance

body { width: 100%; background-image: url('\C:\Users\Asus 201\Desktop\курс основы программирования\дидим2.jpg'); } 
  • specify the path relative. - teran
  • 2
    how do you rate? planning to cooperate with geekbrains? - Dmitriy
  • It is important to understand that url resolves in a browser that cannot know anything about the file system on the server. In css need working links, such that you can open the picture in the next tab. /1.jpg , /1.jpg , http://images.ru/cool.jpg - vp_arth

2 answers 2

specify the path relative to the css file in which it is written. If you want to go to the folder up then use ../ , and then the path to the picture Read more

  • Thank you very much, it turned out! - Nzah

invalid address

C: / Users / Asus 201 / Desktop / course programming basics / didim2.jpg

or

C: \\ Users \ Asus 201 \\ Desktop \\ course programming fundamentals \\ didim2.jpg