clueless Posted February 20, 2006 Share Posted February 20, 2006 Am getting more and more frustrated about this! I'm just trying to create an image as the background to my webpage, using the 'background-image' property in CSS.I've tried everything I can think of but it still won't work. There may just be a problem somewhere else, however the code in my style sheet looks like this: body{background-image: url(arthur.jpg)}What am i doing wrong? Is there some vital piece of info I'm missing?!thanks Link to comment Share on other sites More sharing options...
newbman Posted February 20, 2006 Share Posted February 20, 2006 Am getting more and more frustrated about this! I'm just trying to create an image as the background to my webpage, using the 'background-image' property in CSS.I've tried everything I can think of but it still won't work. There may just be a problem somewhere else, however the code in my style sheet looks like this:What am i doing wrong? Is there some vital piece of info I'm missing?!thanks<{POST_SNAPBACK}> I'm not sure what the problem these could be it:image not in same file as the webpagedo you have <style type="text/css"></style> or external file correctly coded? Link to comment Share on other sites More sharing options...
Nudua Posted February 20, 2006 Share Posted February 20, 2006 Have you remembered to type <link rel="stylesheet" type="text/css" href="stylesheet.css" /> if you have an extarnal stylesheet? Link to comment Share on other sites More sharing options...
clueless Posted February 21, 2006 Author Share Posted February 21, 2006 Have you remembered to type <link rel="stylesheet" type="text/css" href="stylesheet.css" /> if you have an extarnal stylesheet?<{POST_SNAPBACK}> Yes, I had done all the above.. Oddly enough I tried viewing on a different computer (before it was with a Mac, this time it's a PC) and it works fine.????!!!!!Thanks for your help anyway Link to comment Share on other sites More sharing options...
me16_17 Posted February 21, 2006 Share Posted February 21, 2006 Am getting more and more frustrated about this! I'm just trying to create an image as the background to my webpage, using the 'background-image' property in CSS.I've tried everything I can think of but it still won't work. There may just be a problem somewhere else, however the code in my style sheet looks like this:What am i doing wrong? Is there some vital piece of info I'm missing?!thanks<{POST_SNAPBACK}> try this body{background-image: url('arthur.jpg')} Link to comment Share on other sites More sharing options...
Aphotic Posted February 21, 2006 Share Posted February 21, 2006 Make sure that your background isn't covered. If you, for example, use a container to center you site, and in your container div, it is coded to have a solid bg color, i.e. black, then that will cover it. Understand? 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