Jump to content

Background image has just stopped displaying.


Jammin87

Recommended Posts

Hi,

 

My background image has been working fine until a short while ago when it stopped showing at all (I didn't think that I had even changed anything). my CSS code is:

 

 

body
{
background:url(images/bg.jpg) no-repeat #404040 center top;
padding:0;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
margin:0px auto auto auto;
color:#000;
}
p{
padding:2px;
margin:0px;
}
I have tried changing to ("images/bg.jpg"). This does not resolve the issue. I have also moved the color to before the url, this has also not worked. I have also double checked the file path, which is correct.
Any help much appreciated.
Thanks,
Link to comment
Share on other sites

The code looks just fine to me. If this is an external stylesheet make sure that the image URL is relative to the directory the stylesheet is in and not the one that the HTML document is it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...