Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
|
Well, you've got a URL pointing to a local file, which is a bad idea. When you code a site, you should keep a logical file structure, say with the home page top level (some keep all pages top level), a folder for images, a folder for scripts, and so on. Your CSS would then be:
body{background-image: url('images/banner_for_website.jpg');}
Remember the quotes, too. The image, of course, would be in the images folder. Also, avoid spaces in file names; use underscores if you need a space.
By doing it that way, it doesn't matter if you look at the page on the Web, on your computer, or on another computer off of a thumb drive, it will function the same way.
tim 
|