background-image is not working

Asked

Viewed 277 times

-1

  • box the image img/fundo%20site%20simples.png?

2 answers

2


To URL of the folder and the image you entered do not exist. Your file index.css is in the folder css and its file index.html is one level below this folder, so what you’re trying to do is insert an image into the folder img inside the briefcase css.

  background-image: url("img/fundo%20site%20simples.png");

This folder img does not exist inside the folder css, then you just go back one level using ../ so it will come out of the folder css and you’ll find the briefcase img and find the file fundo%20site%20simples.png.

background-image: url("../img/fundo%20site%20simples.png");
  • 1

    Leandro vlw I had forgotten them. / JESUS q shame :D , vlw msm for answering me :D helped a lot was already trying to do gambiarra here :P

  • 1

    success ae, happens!

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.