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

Issue

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.

Solution

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.

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

Answered By – Tabogachi

Answer Checked By – Clifford M. (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.