0

I am trying to add a background from an image. The image is in a folder in my project named Images. This is the code I am using but the screen remains white.

background-image:url("/Images/main-background.png");
background-repeat: repeat-x;

any help pls ?

Mark Fenech
  • 1,358
  • 6
  • 26
  • 36
  • Try This: background-image:url("../Images/main-background.png"); – Gopikrishna Jun 04 '13 at 10:09
  • This is so your configuration and directory structure dependent... The css looks correct. Your path is probably broken, or your image blank :). – zozo Jun 04 '13 at 10:13

1 Answers1

0

try this:

if your folder resides on the same location where your page saved then try this

background-image:url("images/main-background.png");

to go back to the directory you can use ../ this can take you one step back.

Mehar
  • 2,158
  • 3
  • 23
  • 46