Jammin87 Posted May 21, 2014 Share Posted May 21, 2014 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 More sharing options...
Ingolme Posted May 21, 2014 Share Posted May 21, 2014 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 More sharing options...
Jammin87 Posted May 21, 2014 Author Share Posted May 21, 2014 Hi, Yes that was the problem. Thanks for the help! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now