Jump to content

background image problems


clueless
 Share

Recommended Posts

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

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

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

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

try this
body{background-image: url('arthur.jpg')}

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
 Share

×
×
  • Create New...