Why this isn't changing the background to an image in CSS?


I wrote this code in CSS

‘body {
background-image: url(‘C:\Users\HerOx\Desktop\Proyectos ProgramaciĆ³n\gata conquistadora\imagenes olivia\olivia-demonio.png’);


And it isn’t working.


A solution for this would just to put the image in the same folder as the code, then write the image file there instead of going through the entire computer.

  background-image: url("olivia-demonio.png");

Answered By – Tabogachi

Answer Checked By – Pedro (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.